-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(avm): more efficient low leaf search (#9870)
This swaps out the initial implementation of the tracking just the `indexedTreeMin` of a leaf seen by an indexed tree in favour of a vector of sorted keys that we binary search over. This has 2 benefits, especially in the scenario where the `indexedTreeMin` was storing very small key values. 1) logn search time for keys that we have already seen 2) better than linear searching of the merkleDB for keys we dont have, since we dont have to start searching from min
- Loading branch information
1 parent
3014a69
commit f7bbd83
Showing
2 changed files
with
89 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters