Skip to content

Several changes to mruset

Placeholder Pieter Wuille requested to merge github/fork/sipa/smallmru into master

Including:

  • @gavinandresen's #6066
  • Maintain the mru order using iterators rather than copies.
  • Use a ring buffer (implemented using a statically allocated vector) rather than a deque for keeping the iterators.
  • Replace the mruset unit tests with a single stronger unified one.

This reduces the memory consumption of a maximal setAddrKnown by +- half.

Merge request reports

Loading