Java 8 loop optimization puzzle

Skip to first unread message

Arnaud Roger

Nov 4, 2016, 5:52:57 AM11/4/16
Hi all,

I faced a puzzling performance behavior that seems to be link
to the asm generated, I wrote a summary here :
I have a tight loop with 3 conditions in it and looks like on the slow mode the vm is puting some of the conditionnal path outside in the for loop before checking the condition. That's the teaser there is a lot more in the post.

I wonder if you guys could see any issues with the analysis, or shed some light on the heuristics that could lead to that.

Regards, Arnaud
Reply all
Reply to author
0 new messages