Package0.2.7.7DataData Structures
bytestring-trie
An efficient finite map from bytestrings to values.
- Version0.2.7.7
- CategoryData, Data Structures
- LicenceBSD-3-Clause
- Authorwren gayle romano
- Maintainerwren@cpan.org
- Homepagewrengr.org/software/hackage.html
- Pinned byhackage bytestring-trie 0.2.7.7
- Sourcehackage.haskell.org/package/bytestring-trie-0.2.7.7
Modules
3 modules- Data.Trie31An efficient implementation of finite maps from strings to values.
- Data.Trie.Convenience21Additional convenience functions. In order to keep Data.Trie
Internal modules · 1
- Data.Trie.Internal41Internal definition of the Trie data type and generic functions
Description
An efficient finite map from bytestrings 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 hashmap 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.)
Depends on
4 packages- base-4.22.0.0with GHC
- binary-0.8.9.3with GHC
- bytestring-0.12.2.0with GHC
- deepseq-1.5.1.0with GHC