Schroedingers-Hat/jsphys — comment on commit 2238b8181104def4ea3907cbdfed5330cc71c021
File: relativity/js/README line 2
By Schroedingers-Hat:

Also on optimisation.
Strange story. Changing my loops to for(i=max;i--;){} rather than for(i=0;i0;i--) gave chromium a 4-5x speed bost with no change to firefox or opera.
I thought it might have suddenly realised it was allowed to unroll the loop or something, but manual unrolling didn't have the same effect.