On Thu, Jul 9, 2009 at 10:29 PM, J. McConnell <jdo...@gmail.com> wrote:

> You can try with-local-vars. I'm not sure of the performance
> characteristics of this versus using an atom, but it certainly feels
> more imperative:


It's slow. I suspect it (and binding) uses Java's ThreadLocal, which is
slow. Loop/recur rebinding is literally thousands of times faster.

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