Massive speed-up by avoiding Chrome de-opt in hottest function
authorGreg Hurrell <greg@hurrell.net>
Sun, 2 Aug 2015 06:19:05 +0000 (23:19 -0700)
committerGreg Hurrell <greg@hurrell.net>
Sun, 2 Aug 2015 06:20:01 +0000 (23:20 -0700)
commitea6db33a7d3d8923feb89f221785d0b4ed913f48
treeb684f39b2ed59a72f8d7cc2eb4c5e46cf3543f2a
parentff9ba9af31b9ab11d0b507aa9d697eaadcc11a90
Massive speed-up by avoiding Chrome de-opt in hottest function

I became suspicious of the Math calls thanks to this thread:

https://groups.google.com/forum/#!msg/google-chrome-developer-tools/Y0J2XQ9iiqU/H60qqZNlQa8J

Turns out, those were the culprit.
src/addDigits.js