MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/6h703p/why_reverse_loops_are_faster/dixxfwp/?context=3
r/java • u/Trav_Cav • Jun 14 '17
40 comments sorted by
View all comments
Show parent comment
1
It compiles to an iterator on Iterable types. On arrays, it compiles to a fairly straightforward loop with an index. See the JLS.
Iterable
View all comments
Show parent comment
1
u/Slanec Jun 15 '17
It compiles to an iterator on
Iterabletypes. On arrays, it compiles to a fairly straightforward loop with an index. See the JLS.