Skip to content

feat(trie): AddMany#21

Merged
guillaumemichel merged 2 commits intomainfrom
trie-addmany
Oct 2, 2025
Merged

feat(trie): AddMany#21
guillaumemichel merged 2 commits intomainfrom
trie-addmany

Conversation

@guillaumemichel
Copy link
Copy Markdown
Collaborator

AddMany adds multiple entries to the trie.

AddMany is much more efficient than iterating on the items and adding them sequentially, since this requires to traverse the trie multiple times.

AddMany splits the keys in left and right at each depth, allowing to insert many keys and limiting the number of trie traversals.

@guillaumemichel guillaumemichel merged commit 4b3bd98 into main Oct 2, 2025
4 checks passed
@guillaumemichel guillaumemichel deleted the trie-addmany branch October 2, 2025 12:07
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