3 ms·
Yeah that's definitely the case. This test was for string interning though, so I assume the prefix checking wasn't really necessary so the trie doesn't gain any
by tgarv 11y ago
Yeah that's definitely the case. This test was for string interning though, so I assume the prefix checking wasn't really necessary so the trie doesn't gain any advantage from having that capability (though I admit I wasn't familiar with the concept of string interning before reading this post so I could be missing something).
- alienasa 11y agoIt seems to be that you've hit the nail on the head: Hash Tables are faster than Tries when your only requirement is that you don't duplicate storage.