Closed ValarDragon closed 4 months ago
The update presents a shift to a more efficient prefixing system within a key formatting package, adjusting key generation and indexing methodologies. It also includes renaming of certain struct fields for clarity and aligns with a new versioning scheme. The changes streamline the process of key manipulation, specifically for benchmarks, and affect how nodes are referenced and stored within the database.
File(s) | Summary |
---|---|
keyformat/prefix_formatter.go |
Introduced FastPrefixFormatter for efficient key prefixing in benchmarks. |
node.go |
Renamed fields from *NodeKey to *NodeHash and added comments for version clarification. |
nodedb.go |
Replaced NewKeyFormat with NewFastPrefixFormatter and updated related method calls. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ?
This speeds up key formatting, which is by no means the bottleneck, but appeared to be 0.5% of the time of some Osmosis mainnet sync pprof's on IAVL v0 and v1