Skip to content

fixed problem with ProtoTree::FindPrefix() and made some optimizations - #52

Merged
bebopagogo merged 2 commits into
masterfrom
protoTree-fix
Mar 18, 2026
Merged

fixed problem with ProtoTree::FindPrefix() and made some optimizations#52
bebopagogo merged 2 commits into
masterfrom
protoTree-fix

Conversation

@bebopagogo

Copy link
Copy Markdown
Collaborator

During the course of ProtoTree evolution to support more general purpose usage, the fundamental longest-prefix matching capability provided by ProtoTree::FixPrefix() was broken with the introduction of supporting mixed key sizes in a single ProtoTree. The solution (and fix provided here) is to use an end-of-key marker strategy that maintains the prefix tree organization.

@bebopagogo bebopagogo left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

treeTest.cpp file not properly added

@bebopagogo
bebopagogo merged commit d09e60f into master Mar 18, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant