BigInteger icon indicating copy to clipboard operation
BigInteger copied to clipboard

Explain the usage of SmallBigInt.js

Open cyan-2048 opened this issue 11 months ago • 1 comments

this file seems to be a monkeypatch for JSBI to use Native BigInt instead of pure javascript big ints, could there be a better explanation on the README?

if my assumption is correct, SmallBigInt could be very useful for certain use cases.

cyan-2048 avatar Feb 14 '25 08:02 cyan-2048

when the code is transformed using babel-plugin-transform-bigint it uses JSBI, I want to replace JSBI with a wrapper around native BigInts as it native bigint implementation is faster. Another think, is there is SmallBigInt class with same API as JSBI, but which stores small values as numbers, which is also faster in some cases

Yaffle avatar Feb 14 '25 10:02 Yaffle