Use https://github.com/greg7mdp/parallel-hashmap for various indexes instead of STL unordered_map and google sparsehash map. This reduces memory usage by ~ 500Mb, from ~1.5Gb to ~ 1Gb at cost of slightly longer startup and greatly speedup startup/exit by dump key images map and txs map to disk and restore as a single array, very efficiently, and without requiring any hash computation.
Use https://github.com/greg7mdp/parallel-hashmap for various indexes instead of STL unordered_map and google sparsehash map. This reduces memory usage by ~ 500Mb, from ~1.5Gb to ~ 1Gb
at cost of slightly longer startupand greatly speedup startup/exit by dump key images map and txs map to disk and restore as a single array, very efficiently, and without requiring any hash computation.