bitcoindevkit / bitcoindevkit/rust-electrum-client

Very high memory consumption (that is never freed) when running `batch_script_get_history`

Open
#90 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
89
Forks
82
Avg merge
2d 3h
Merged PRs (30d)
1

Description

When running `batch_script_get_history` on a Linux machine with processing many scripts the memory consumption is enormous and does not go down. This test showcases this behavior.

When triggering the test with `7000` scripts we see a memory consumption of about `4GB`.
Note that you can add a loop to re-trigger the batching to see that the memory does not get freed.

This problem could be reproduced on multiple Linux machine, but not on MacOS.

I opened this Draft PR that contains a test that we used to reproduce this behavior: #89

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.