Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce memory usage #23

Open
shane-kerr opened this issue Mar 1, 2018 · 0 comments
Open

Reduce memory usage #23

shane-kerr opened this issue Mar 1, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@shane-kerr
Copy link
Owner

Right now the MintCoin wallet takes almost 2 GB of RAM. This is because we load the entire blockchain (and a bunch of other stuff) into memory. Increasing the amount of memory by 500 MB per year seems sub-optimal (although possibly as memory gets cheaper and bigger this will not matter eventually).

We should investigate if there are any easy ways to reduce this memory requirement. A quick look at the code shows there are probably not any easy ways, but we can look a bit more carefully.

Failing that, we should consider other options. For example we can keep only a small part of the block-chain in memory, and use the on-disk version to load as needed. We need to understand the memory access pattern to know if this makes sense, but in theory it is at least possible.

@shane-kerr shane-kerr added enhancement New feature or request help wanted Extra attention is needed labels Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant