Re:Why is 2 * (i * i) faster than 2 * i * i in Java?
by podsnap on Saturday December 08, 2018 @01:31PM
(#18636679)
The graal behavior is a lot more sane:
The graal-generated assembly for the first two cases is nearly identical, featuring unrolled repetitions of sequences like
while the third case does a single shl at the end.
Both graal and C2 inline, but as usual the graal output is a lot more comprehensible.
[ Parent
| on HN ]
There are no comments on this comment yet.