-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(trie): merge leaf and branch in single node struct (#2504)
- Removed type assertions and `Node` interface - Leaf and branch structs merged in one common `Node` struct - Removed trivial methods that were used to avoid type switches such as `GetHash()` - Change `Children` field from an array to a slice so it can be nil for leaves - Deduct node type from children slice (not nil is for a leaf) Co-authored-by: Eclésio Junior <[email protected]>
- Loading branch information
1 parent
f2cdfea
commit 6d22c23
Showing
46 changed files
with
2,188 additions
and
3,291 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
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.