Closed lancejpollard closed 2 years ago
It uses different functions for calculating operations depending on the situation. If the environment supports BigInteger natively, then it will take advantage of that and use NativeBigInt. Otherwise, if the number is small enough to use native JavaScript numbers to perform the calculation, it will use SmallInteger. Otherwise it calculate with arrays of JavaScript numbers.
Hi there, I am digging into the codebase and wondering if you could do a quick breakdown of what the major parts are. For the first thing, what is the need for
SmallInteger
andInteger
andNativeBigInt
, as opposed toBigInteger
?