apd: add inline fast-path to BigInt.SetString#119
Conversation
Not important, but easy enough to do and makes a difference for the performance of `Decimal.setString`, which cockroachdb#116 was interested in.
|
Nice. Is the speed-up primarily from avoiding big.Int's SetString method? If so, would it be worth fixing upstream instead (or in addition)? |
Right. Beyond the reduced complexity of |
I had in mind putting it at the beginning of https://cs.opensource.google/go/go/+/refs/tags/go1.18.3:src/math/big/int.go;l=425 (Given where we are in the Go release cycle, it'd be worth doing here as well.) |
Not important, but easy enough to do and makes a difference for the
performance of
Decimal.setString, which #116 was interested in.