> If I do my pmaptest with a very large Integer (inc 2000000000) instead > of (inc 0), it is as slow as the double version. My question is, > whether Clojure may has a special handling for small integers? Like > using primitives for small ints and doing a new Integer for larger > ones? > It seems a confirmation that it is a memory allocation related problem. (I think for some reason, this is store as a long, the same size as a double).
This can means two things: - as I hypothesized before, we are measuring the memory bandwidth - we fill the Thread Local Heap so fast, that there is a lock contention for the common heap. I don't know how to separate one from the another... Best, Nicolas. > By the way GC is running periodically, but while profiling it does not > report more than 1 sec of total runtime. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---