On Friday, October 3, 2014 2:45:09 PM UTC-4, adrian...@mail.yu.edu wrote:
>
> You can also call (.getNumericValue (.charAt "foo" 0)) to get the int the 
> static Character isX methods expect. 
>>
>>
>>>
Boxing, boxing, boxing! Apparently it did not occur to the Clojure 
developers that tight loops sometimes also deal with (sometimes large 
amounts of) String data.

Meanwhile, I stumbled onto an odd-seeming solution. If I call my 
long-accepting function with (int (.charAt ... )) everything seems to work, 
with no exceptions or reflection warnings and sensible output. I am still 
concerned that things are getting unnecessarily boxed and unboxed, but at 
least it works, and without reflection.

I still think I have optimization opportunities in this code, but still 
have not received the requested information about profiling in 
counterclockwise. The most obvious optimization that occurred to me shaved 
only a few percent off the running time of the test case I just ran.

-- 
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/d/optout.

Reply via email to