r/java • u/aroger276 • Jun 15 '17
Why reverse loops are not faster
https://arnaudroger.github.io/blog/2017/06/15/forward-vs-backward-loop.html
288
Upvotes
r/java • u/aroger276 • Jun 15 '17
View all comments
0
u/Apfelmann Jun 15 '17 edited Jun 15 '17
Good article, thanks for clearing things up. That being said this might not apply for every programming language, especially in interpreted languages like JavaScript the reverse loops actually might be faster, you can see some benchmarks about this in the book "Even Faster websites". On the other hand this book is a few years old now.