I have done the benchmarks and optimized the implementation. On my PC with 
the new changes TransactionalMap is up to 5 times slower than 
ConcurrentHashMap. You can find the benchmarks here:

https://github.com/CERN-BE/Entwined-STM/blob/master/src/test/java/cern/entwined/demo/clojure_benchmarks.clj

Just require the namespace and run either (time (run-concurrent-map)) 
or (time (run-transactional-map)).

Please note while ConcurrentHashMap is faster in this test it does not give 
same guarantees as the TransactionalMap. For example in the benchmarks I 
created 1 thread per key that is being incremented if there was more than 1 
thread updating the same key than ConcurrentHashMap wouldn't be suitable 
any more.

I will release the improved new version 1.0.1 later this week.

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to