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 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.5.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
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.5 && <4.16), binary (>=0.5.1 && <0.8.8), bytestring (>=0.9.2 && <0.11) [details] |
Tested with | ghc ==7.4.1, ghc ==7.4.2, ghc ==7.6.1, ghc ==7.6.2, ghc ==7.6.3, ghc ==7.8.1, ghc ==7.8.2, ghc ==7.8.3, ghc ==7.8.4, ghc ==7.10.1, ghc ==7.10.2, ghc ==7.10.3, ghc ==8.0.1, ghc ==8.0.2, ghc ==8.2.1, ghc ==8.2.2, ghc ==8.4.1, ghc ==8.4.2, ghc ==8.4.3, ghc ==8.6.1, ghc ==8.6.2 |
License | BSD-3-Clause |
Copyright | Copyright (c) 2008--2019 wren gayle romano |
Author | wren gayle romano |
Maintainer | wren@cpan.org |
Revised | Revision 2 made by GershomBazerman at 2021-06-19T23:56:41Z |
Category | Data, Data Structures |
Home page | http://wrengr.org |
Source repo | head: git clone https://github.com/wrengr/bytestring-trie.git |
Uploaded | by WrenRomano at 2019-02-26T04:22:55Z |
Distributions | Fedora:0.2.7.2, LTSHaskell:0.2.7.5, NixOS:0.2.7.5, Stackage:0.2.7.5 |
Reverse Dependencies | 24 direct, 361 indirect [details] |
Downloads | 25288 total (119 in the last 30 days) |
Rating | 2.5 (votes: 4) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |