peterolson / BigInteger.js

An arbitrary length integer library for Javascript
The Unlicense
1.12k stars 187 forks source link

Simple improvement to toString() #177

Open Azero123 opened 5 years ago

Azero123 commented 5 years ago

When using bigInt().toString(2) and running benchmark comparisons with bigInt().toArray(2).value.join('') the performance is very significantly different. It might be possible to drastically improve the speed by simply using toArray() within toString().