On Fri, Dec 04, 2009 at 03:15:28PM +0200, Sergey Didenko wrote:

>However it looks interesting, "(dosync (alter myref inc))" takes much longer

If your var is independent, how about using an atom?

   (swap! myatom inc)

seems to be about 5-10 times faster than a dosync/ref on my Linux machine.

David

-- 
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

Reply via email to