Does anyone have benchmarks comparing the performance of Clojure's PersistentVectors to standard arrays in Java and/or C? O(1) is pretty useless if the constant factor is huge. Anecdotally, I've heard that they are "fast" but it would be interesting to know what that really means.
> They are a data structure invented by Rich Hickey for Clojure<p>It is an implementation of a data structure invented by Phil Bagwell: <a href="http://lampwww.epfl.ch/papers/idealhashtrees.pdf" rel="nofollow">http://lampwww.epfl.ch/papers/idealhashtrees.pdf</a>
Branching factor 32 is great for lookups, but isn't it slower for modification? At least, one has to create more array cells in total (31 copies in each node), no?