3 ms·
FWIW, Ruby the language doesn't have Bignum any more, though, just Integer which handles arbitrarily large numbers. Under the hood, there are some optimizations
by dmurray 5y ago
FWIW, Ruby the language doesn't have Bignum any more, though, just Integer which handles arbitrarily large numbers. Under the hood, there are some optimizations for small integers.
https://bugs.ruby-lang.org/issues/12005 https://bugs.ruby-lang.org/issues/12005
- chrisseaton 5y agoBignum is still there, working in almost exactly the same way, it's not exposed to the user anymore.