crates/trie/sparse/benches/root.rs::root::calculate_root_from_leaves_repeated::calculate root from leaves repeated
-3%
42.6 ms44 ms
Commits
Click on a commit to change the comparison range
Base
main
be73e4a
+0.1%
fix(trie): Rewrite InMemoryTrieOverlay (with proptests!)
The `InMemoryTrieOverlay::next` method was previously very broken, in
that it did not ever descend into lower parts of the trie. For example
a given current key of `0xA`, and subsequent keys of `0xA0` and `0xB`,
`next` was returning `0xB`. This was due to incorrect usage of the
`Nibbles::increment` method.
Fixing this issue involved essentially rewriting the entire type. The
new implementation includes proptests to ensure that it functions
correctly.
Some extra debug checks have also been added to ensure that the overlay
is actually being used correctly.
d34a5d0
6 days ago
by mediocregopher
+10.09%
doc fixes
888af31
6 days ago
by mediocregopher
-10.15%
rename next_inner
799862e
5 days ago
by mediocregopher
-0.21%
Merge remote-tracking branch 'upstream/main' into mediocregopher/in-mem-trie-overlay-fix