|
|
|
|
|
by sesm
646 days ago
|
|
The key idea behind Clojure data structures is that they are immutable, but don't require a full copy on update, because an updated version partly reuses the initial version. The data structure that enables this is called HAMT (hash array mapped trie). Clojure's implementation modified the initial Phil Bagwell's implementation of HAMT in a subtle way in order to make performance characteristics not degrade over time. |
|
Of course I'd need benchmarks to make a real judgement. The above is my gut reaction.