From 9f947fc3d4b779f017332135323b34e8f216f613 Mon Sep 17 00:00:00 2001 From: Martin Leitner-Ankerl Date: Sat, 11 Jun 2022 11:27:38 +0200 Subject: Use PoolAllocator for CCoinsMap In my benchmarks, using this pool allocator for CCoinsMap gives about 20% faster `-reindex-chainstate` with -dbcache=5000 with practically the same memory usage. The change in max RSS changed was 0.3%. The `validation_flush_tests` tests need to be updated because memory allocation is now done in large pools instead of one node at a time, so the limits need to be updated accordingly. --- src/test/coins_tests.cpp | 39 ++++++++++++++++++++++++++++++++++--- src/test/fuzz/coins_view.cpp | 3 ++- src/test/validation_flush_tests.cpp | 28 ++++++++++++++++---------- 3 files changed, 56 insertions(+), 14 deletions(-) (limited to 'src/test') diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index e082800fc3..853dc6dc1e 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -6,6 +6,7 @@ #include #include