On Java HotSpot: -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly You'll need quite a few iterations, and be wary of code with no observable effect (becomes subject to dead code elimination).
As far as I could tell cast or no cast made no difference at all (in this particular case). /Johan Wirde On Sun, Feb 13, 2011 at 4:05 PM, Stuart Sierra <[email protected]>wrote: > Modern JVMs like HotSpot are very good at eliminating unnecessary > instructions. Unfortunately, I haven't heard of a good tool for observing > this process, so you either have to take it on faith or go read the OpenJDK > source code. > > -Stuart Sierra > clojure.com > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > 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 post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
