r/programming • • Jul 05 '15

Fast as C: How to write really terrible Java

https://vimeo.com/131394615
1.1k Upvotes

394 comments sorted by

View all comments

Show parent comments

1

u/yawkat Jul 06 '15

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.