Package Info

ghc-bytestring-trie


An efficient finite map from (byte)strings to values


Development/Libraries/Haskell

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.).


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/bytestring-trie

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.2.4.1-bp150.2.4 info GA Release 2018-08-01 15
  • AArch64
  • ghc-bytestring-trie
  • ghc-bytestring-trie-devel
0.2.4.1-bp150.2.6 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-bytestring-trie
  • ghc-bytestring-trie-devel