phoboslab/js-hqx — pull request #3 by LeoDutra (2012-02-12 07:41:03+00:00)
Title: Highly optimized HQX operations

- faster "===" (same type) operator replacing "==";
- faster *2 and *4 multiplications (using "<< 1" and "<< 2", since we have integers);
- MathAbs simple and handmade function for maximum performance (more stable performance cross-browser and -1 call (Math[>>DOT<<]abs);
- dpL+dpL+dpL replaced to (dpL * 3). Less code, less operations, more speed;
- dpL+dpL replaced to (dpL << 1). Shifting is faster than var call;
- += 4 replaced to <<= 2;
- += 2 replaced to <<= 1;
- "<= 9" replaced to "< 10". "Less or equal" is slower than "less" and got 1 less char;
- minor speedups.