Conversation
|
Benchmarks, doing range scans of 10.000 keys on databases with 1 million and 10 million keys:
For these database sizes, B-trees have a speedup of 2-3 orders of magnitude. More importantly, and as expected, the old map-based database has a dependence on the number of keys in the database while B-trees do not. The tradeoff is that read/write operations are three times more costly, but I think that's well worth it. |
|
I ran some Cosmos SDK benchmarks using the B-tree MemDB, via
It appears that IAVLs use of MemDB in Overall memory usage is about the same in both cases. |
* Create SECURITY.md * Update SECURITY.md * Apply suggestions from code review --------- Co-authored-by: Thane Thomson <connect@thanethomson.com>

Fixes #52 (see also tendermint/tendermint#4520). Uses a B-tree for storage, which should significantly improve range scan performance. No breaking changes.
Haven't had time to benchmark this yet, will do so shortly.