An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

text-trie

An efficient finite map from Text to values, based on bytestring-trie. 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.)

Ecosystem
hackage.haskell.org
Latest Release
0.2.5.0
about 7 years ago
Versions
1
Downloads
994 total
Dependent Repos
1
Links
Registry hackage.haskell.org
Source Repository
Homepage Homepage
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/text-trie
spec
License BSD-3-Clause
First Release about 7 years ago
Last Synced about 4 hours ago
Repository
Stars 5 on GitHub
Forks 6 on GitHub