bytestring-trie: An efficient finite map from (byte)strings to values.
An efficient finite map from (byte)strings to values.
The implementation is based on big-endian patricia trees, like Data.IntMap. We first trie on the elements of Data.ByteString and then trie on the big-endian bit representation of those elements. Patricia trees have efficient algorithms for union and other merging operations, but they're also quick for lookups and insertions.
If you are only interested in being able to associate
strings to values, then you may prefer the
package which is faster for those only needing a
map-like structure. This package is intended for
those who need the extra capabilities that a trie-like
structure can offer (e.g., structure sharing to
reduce memory costs for highly redundant keys,
taking the submap of all keys with a given prefix,
contextual mapping, extracting the minimum and
maximum keys, etc.)
[Skip to Readme]
|Versions [faq]||0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.2.2, 0.2.3, 0.2.4, 0.2.4.1, 0.2.4.3, 0.2.5.0|
|Dependencies||base (>=4 && <4.11), binary, bytestring (>=0.9 && <0.11) [details]|
|Copyright||Copyright (c) 2008--2019 wren gayle romano|
|Author||wren gayle romano|
|Category||Data, Data Structures|
|Source repo||head: git clone https://github.com/wrengr/bytestring-trie.git|
|Uploaded||by WrenRomano at Mon Feb 25 05:59:23 UTC 2019|
|Downloads||14410 total (133 in the last 30 days)|
|Rating||2.5 (votes: 4) [estimated by rule of succession]|
Docs uploaded by user [build log]
All reported builds failed as of 2019-02-25 [all 2 reports]
Use optimized C implementation for indexOfDifference. See notes in Data.Trie.ByteStringInternal.
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
For package maintainers and hackage trustees