-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sequence): use patricia_tree (#995)
The `patricia_tree` crate is more maintained than the currently-used `radix_trie` crate and uses less memory because the radix_trie crate has radix 16 while the patricia tree has radix 2. Computation cost comparison unknown.. but reducing memory usage is a good thing! - https://crates.io/crates/patricia_tree - https://crates.io/crates/radix_trie Comparison of memory usage: ``` (defseq woa (O-(a b c d e f g h i j))) patricia_tree: 200 MB radix_tree: 1700 MB ``` Since overlapped-key sequences generate a sequence for all permutations of the key combinations, having 10 simultaneous keys generates `10! = 3.6M` sequences. I should probably limit this to some reasonable number like 6...
- Loading branch information
Showing
3 changed files
with
43 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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