Skip to content

Commit

Permalink
tune prefix tree implementation (#1105)
Browse files Browse the repository at this point in the history
Updates the prefix tree implementation to improve the
performance. Instead of going character by character
the nodes will now keep a prefix string for faster
matching and less thread contention. Testing on real
sample data it reduced the time for matching against
the query index by ~6%.
  • Loading branch information
brharrington authored Jan 4, 2024
1 parent 3d00e46 commit 4c78bf8
Show file tree
Hide file tree
Showing 3 changed files with 375 additions and 109 deletions.
3 changes: 2 additions & 1 deletion codequality/checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

<suppressions>
<suppress checks="IllegalImport" files="UnsafeUtils.java"/>
</suppressions>
<suppress checks="VisibilityModifier" files="PrefixTree.java"/>
</suppressions>
Loading

0 comments on commit 4c78bf8

Please sign in to comment.