Why might a JavaScript loop counting upward be faster than one counting downward?
I'm comparing two nearly identical XOR-based hash functions in JavaScript. In the first version, the string length is stored once and the loop counts upward. In the second,…