Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将几百万个短(长度 < 16)字符串从文件中加载到 Haskell 中的字符串树中,然后执行许多非常快速的查找。在 Haskell 中如何做到这一点的最佳方法是什么?将不胜感激任何策略(包)。
注意:一定是trie,因为我需要trie的搜索逻辑。
字节串特里。我认为它对于大多数目的来说已经足够快了。