Adding BigInts to V8
> That’s exactly how V8 multiplies BigInts: one digit at a time, adding up the intermediate results. The algorithm works just as well for 0 to 9 as it does for a BigInt’s much bigger digits.Why not use a faster algorithm, like the Karatsuba algorithm[1] or the Toom-Cook[2] algorithm?[1] https://en.wikipedia.org/wiki/Karatsuba_algorithm[2] https://en.wikipedia.org/wiki/Toom–Cook_multiplication