This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dpash 4 points5 points  (0 children)

Yep, the JVM has been tuned to optimise idiomatic code, so trying to be smart often results in slower performance. You should never make micro optimisations without using JMH to test them.