On Wed, Dec 29, 2010 at 5:13 AM, nicolas.o...@gmail.com <nicolas.o...@gmail.com> wrote: > I never was fully convinced an atom around a functional hash was > perfect for concurrency. > > There is no write/write or read/write concurrency possible, even on > independent data.
There is if you resort to (mutable) java.util.concurrent.ConcurrentHashMap, which I've even had occasion to use in a Clojure project when I needed finer lock/retry granularity than the whole map and for whatever reason reads and (commute mapref assoc ...) didn't suffice to cover all the use-cases. > Someone was working a while ago ob TransactionalHashMap, if I recall well. > Is there something already to benchmark against java? Is this something like a persistent immutable ConcurrentHashMap? Or maybe a map integrated with the ref world in some way? Or both? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en