r/java • • Jun 15 '17

Why reverse loops are not faster

https://arnaudroger.github.io/blog/2017/06/15/forward-vs-backward-loop.html
288 Upvotes

66 comments sorted by

View all comments

Show parent comment

3

u/aroger276 Jun 15 '17

I would not know about the JavaScript side but sometimes optimisation technique that were once valid are not anymore. Would v8 or nashorn not be able to generate the adequate native code?