Closed Yaffle closed 9 years ago
Hey, thanks for the commit, I'll try to look at it next week. I won't have time until after Tuesday.
суббота, 19 сентября 2015 г. пользователь Viktor написал:
Hello, what do you think about this?
The idea is to avoid ".isSmall" by using a private method - "_multiplyBySmall".
Also, I splitted parseValue into smaller functions, this helps to some js
engines, seems.
You can view, comment on, or merge this pull request online at:
https://github.com/peterolson/BigInteger.js/pull/47 Commit Summary
- Update BigInteger.js
File Changes
- M BigInteger.js https://github.com/peterolson/BigInteger.js/pull/47/files#diff-0 (60)
Patch Links:
- https://github.com/peterolson/BigInteger.js/pull/47.patch
- https://github.com/peterolson/BigInteger.js/pull/47.diff
— Reply to this email directly or view it on GitHub https://github.com/peterolson/BigInteger.js/pull/47.
@peterolson OK
Looks good to me.
Hello, what do you think about this?
The idea is to avoid ".isSmall" by using a private method - "_multiplyBySmall".
Also, I splitted
parseValue
into smaller functions, this helps to some js engines, seems. And it will returnthis
for any non-string and non-number value... but avoidance ofinstanceof
also improves perf.