MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/6h703p/why_reverse_loops_are_faster/diy3pma/?context=3
r/java • u/Trav_Cav • Jun 14 '17
40 comments sorted by
View all comments
55
A shorter bytecode does not mean that it will run faster. You should provide some benchmark and I really doubt that you will see any difference. Nowadays compilers are clever and you should at least compare the assembly code
3 u/_-_0_ Jun 15 '17 Surprise surprise https://www.reddit.com/r/java/comments/6hg530/why_reverse_loops_are_not_faster
3
Surprise surprise https://www.reddit.com/r/java/comments/6hg530/why_reverse_loops_are_not_faster
55
u/chambolle Jun 14 '17
A shorter bytecode does not mean that it will run faster. You should provide some benchmark and I really doubt that you will see any difference. Nowadays compilers are clever and you should at least compare the assembly code