]> git.wincent.com - hextrapolate.git/commitdiff
Avoid repeated `reverse()` calls in `getDigits` + `joinDigits`
authorGreg Hurrell <greg@hurrell.net>
Thu, 1 Jun 2017 15:14:08 +0000 (08:14 -0700)
committerGreg Hurrell <greg@hurrell.net>
Thu, 1 Jun 2017 15:14:08 +0000 (08:14 -0700)
Put most significant digits first, which means we avoid the `reverse()`
calls at the cost of having to use `unshift()`. It is indeed slower, but
I wanted to show my work. Next step will be replacing the `unshift()`
with `push()` + `reverse()`, but that probably still won't be enough to
get us back to perf parity.


No differences found