-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
part: Move the leaf pointer out of the header
To avoid having the useless 'leaf' field in the leaf struct, move it out from header into each individual node struct. We still have the 'prefix' in the leaf struct that could in principle be removed by special-casing, e.g. instead of always looking at the prefix one would first check if the node is a leaf and then do full key comparison instead. Leaving that for a later commit. Signed-off-by: Jussi Maki <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
7 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