bytestring-trie: An efficient finite map from bytestrings to values.
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.)
[Skip to Readme]
Downloads
- bytestring-trie-0.2.7.5.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 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, 0.2.5.1, 0.2.5.2, 0.2.5.3, 0.2.6, 0.2.7, 0.2.7.1, 0.2.7.2, 0.2.7.3, 0.2.7.4, 0.2.7.5 |
---|---|
Change log | CHANGELOG |
Dependencies | base (>=4.9 && <4.21), binary (>=0.8.3 && <0.9), bytestring (>=0.10.8 && <0.13), deepseq (>=1.4.2 && <1.6) [details] |
Tested with | ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.4, ghc ==8.10.3, ghc ==9.0.1, ghc ==9.2.4, ghc ==9.4.8, ghc ==9.6.5, ghc ==9.8.2, ghc ==9.10.1 |
License | BSD-3-Clause |
Copyright | 2008–2024 wren gayle romano |
Author | wren gayle romano |
Maintainer | wren@cpan.org |
Category | Data, Data Structures |
Home page | https://wrengr.org/software/hackage.html |
Bug tracker | https://github.com/wrengr/bytestring-trie/issues |
Source repo | head: git clone https://github.com/wrengr/bytestring-trie.git |
Uploaded | by WrenRomano at 2024-08-29T22:24:56Z |
Distributions | Fedora:0.2.7.2, LTSHaskell:0.2.7.5, NixOS:0.2.7.3, Stackage:0.2.7.5 |
Reverse Dependencies | 24 direct, 361 indirect [details] |
Downloads | 24981 total (132 in the last 30 days) |
Rating | 2.5 (votes: 4) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2024-08-29 [all 1 reports] |