On Friday, February 22, 2013 9:04:31 PM UTC+1, David Nolen wrote: > On Friday, February 22, 2013, Marko Topolnik wrote: >> >> >> Annoying *and* slower than Java's locals, unfortunately. Most of the >> time it won't make a huge dent in the performance, but I just happen to >> have an inner loop that iterates between zero and three times only, zero >> being by far the most common case, and is entered many times from the >> surrounding loop. The performance drop is considerable. >> > > If the loops are so small why can't you just make these be more loop > bindings? >
Because the number of iterations is driven by outside data. On occasion it may be more than three iterations; from the logic standpoint this is clearly a loop, it's just that the statistical distribution of iterations leans heavily towards zero and almost vanishes above three or four. -- -- 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.