|
|
|
|
|
by chatman
4659 days ago
|
|
A trie is a poor data structure in practice. There is no locality of reference that can be exploited: to lookup a single key, almost the entire length of the memory blocks occupied by the trie needs to be accessed, and almost at random (depending on the insertion technique). For keys inserted later on, the number of different blocks of memory accesses needed for a single key is proportional to the length of the key. A B-Tree is better due to better exploitation of locality of reference in memory. |
|
The Clojure programming language is completely designed around several immutable variants.