Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pre-sort requirement when building tries #3536

Merged
merged 7 commits into from
May 19, 2022

Conversation

mcculls
Copy link
Contributor

@mcculls mcculls commented May 5, 2022

What Does This Do

Removes the requirement that the ClassNameTrie.Builder requires the class-name mappings to be sorted before generating the trie. The builder now accepts class-name mappings out-of-order and manipulates the trie array to add the necessary branches/nodes.

Motivation

This means we can support incremental trie building, which we can then drive from recorded matching results.

@mcculls mcculls added tag: performance Performance related changes type: refactoring labels May 5, 2022
@mcculls mcculls force-pushed the mcculls/trieRemovePreSortRequirement branch 3 times, most recently from c372921 to d0c46c6 Compare May 6, 2022 14:08
@mcculls mcculls marked this pull request as ready for review May 6, 2022 14:43
@mcculls mcculls requested a review from a team as a code owner May 6, 2022 14:43
@mcculls mcculls force-pushed the mcculls/trieRemovePreSortRequirement branch 2 times, most recently from d37ff05 to d7d7070 Compare May 9, 2022 10:06
@mcculls mcculls force-pushed the mcculls/trieRemovePreSortRequirement branch from 3e6589f to a704fec Compare May 19, 2022 16:05
@mcculls mcculls merged commit 13448a0 into master May 19, 2022
@mcculls mcculls deleted the mcculls/trieRemovePreSortRequirement branch May 19, 2022 16:59
@github-actions github-actions bot added this to the 0.102.0 milestone May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: performance Performance related changes type: refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants