Improve memory usage

Issue #210 new
Michael Witrant
created an issue

The current client takes more than 600 MB of memory. We must reduce that.

Comments (8)

  1. Michael Witrant reporter

    A first quick investigation confirmed that it's the block index that takes almost all the memory. We added a lot of vote data to it, and especially some std::maps and vectors that take a significant amount of memory, even when they're empty.

  2. Michael Witrant reporter

    I made a first proposal in pull request #246. There's a lot more we can do, but it involves more code changes.

    About startup time, yes it's mostly the loading of the block index (when the files are in cache loading is very quick). We could try to reduce the size of the disk block index.

  3. Michael Witrant reporter

    One possibility to reduce memory usage would be to only keep the most recent vote data. To do that we could store them independently from the block index, and load them on demand and cache them (because we may still need old data occasionally).

  4. ho Alexandros des Børgus

    When will this problem be solved with the votes? The wallet is already using at least 830 MB and sometimes it even uses >900 MB. I've to choose between keeping my wallet open or browsing. Doing both will crash my laptop.

  5. Log in to comment