Re:Node.js 14 is over 20x faster than Python3.8 for fib(n)
by d0mine on Tuesday February 09, 2021 @01:12PM
(#26080716)
The numbers are small so there shouldn’t be any difference for fib(35)
[ Parent
| on HN ]
Re:Node.js 14 is over 20x faster than Python3.8 for fib(n)
by ralusek on Tuesday February 09, 2021 @09:27PM
(#26085132)
They're fundamentally stored as and operated on in different ways. A BigInt does suddenly become a BigInt when in excess of MAX_SAFE_INTEGER, it's a BigInt even with a value of 1n.