Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Very big string trie in Haskell

Tags:

haskell

ghc

trie

I need to load a few millions of short (length < 16) strings into a string trie in Haskell from the file and then to perform many very fast look-ups. What is the best way how to do that in Haskell? Would appreciate any strategy (package).

Note: It must be a trie, because I need the search logic of a trie.

like image 470
Cartesius00 Avatar asked Oct 21 '12 18:10

Cartesius00


1 Answers

bytestring-trie. I think it is fast enough for most of the purposes.

like image 200
Satvik Avatar answered Nov 20 '22 12:11

Satvik