-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This mostly rewrites the `Tree`, making the following changes and optimizations: - Uses a real `Node` struct with children and terminals, instead of abusing special keys for it. - Avoids constructing needless non-terminal strings for all intermediate nodes. - Constructs the tree directly iteratively, instead of creating a parallel tree and merging recursively. - Switches from recursion to iteration for `_drill`. It should be possible to also avoid recursion in lookup, but with a bit more effort. This should primarily improve construction performance and improve memory usage, which was the primary pain points with the previous implementation.
- Loading branch information
Showing
4 changed files
with
123 additions
and
260 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
Oops, something went wrong.