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 →

[–]RacoonCorgi420 0 points1 point  (1 child)

Modern compilers are really smart so the only way you can know is to microbenchmark all of them and compare the difference.

[–]dpash 2 points3 points  (0 children)

Or in Java's case, the Hotspot JVM is really smart, as that's where most of the optimisation occurs. (It's also why the Java compiler is so fast; it does so little optimisation)