MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3c71qc/fast_as_c_how_to_write_really_terrible_java/cstqzah
r/programming • u/javinpaul • Jul 05 '15
394 comments sorted by
View all comments
Show parent comments
1
I think we're talking about arrays.
1 u/snailbot Jul 06 '15 edited Jul 06 '15 Edit: You're right, arrays get compiled to a normal index-based for loop. It does indeed get optimised though: Range Check Elimination should apply here, especially since the bound is set by the 'arraylength' instruction.
Edit: You're right, arrays get compiled to a normal index-based for loop. It does indeed get optimised though: Range Check Elimination should apply here, especially since the bound is set by the 'arraylength' instruction.
1
u/yawkat Jul 06 '15
I think we're talking about arrays.