On Friday, February 22, 2013 8:41:15 PM UTC+1, David Nolen wrote:

> Er re: assigning stack based locals. Forget wasting time making a tuple 
> type, probably best to just do that with a small mutable array. This 
> worked ok for us when porting some Java persistent data structure code to 
> ClojureScript.
>

Again, must reuse the same array for all inner iterations to avoid 
allocation, GC, and cache misses. I need two Strings and one primitive 
double, so I'm actually looking at two arrays. The housekeeping overhead is 
just too much for my taste. That's why the rewrite into Java came as such a 
relief :)

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