Breaking Changes
The Decimal.Coeff field's type has changed from a math/big.Int to a new apd.BigInt type. This allows the library to embed small coefficients into the Decimal struct directly, instead of requiring a separate heap allocation and indirection.
What's Changed
- apd: add decomposer interface methods by @kardianos in https://github.com/cockroachdb/apd/pull/88
- add some linting to travis by @mjibson in https://github.com/cockroachdb/apd/pull/92
- apd: update decomposer methods to use big-endian coefficent by @kardianos in https://github.com/cockroachdb/apd/pull/93
- apd: perform CI using GitHub Actions by @nvanbenschoten in https://github.com/cockroachdb/apd/pull/106
- apd: prevent (*Decimal).Int64 receiver from escaping to heap by @nvanbenschoten in https://github.com/cockroachdb/apd/pull/104
- apd: embed small coefficient values in Decimal struct by @nvanbenschoten in https://github.com/cockroachdb/apd/pull/103
- apd: add apd.BigInt / math/big.Int interop methods by @nvanbenschoten in https://github.com/cockroachdb/apd/pull/108
- apd: tune performance by inlining function calls and manually unrolling loops by @nvanbenschoten in https://github.com/cockroachdb/apd/pull/107
- apd: add inline fast-path to BigInt.Format by @nvanbenschoten in https://github.com/cockroachdb/apd/pull/109
- apd: support and test 32-bit architectures and ARM architectures by @nvanbenschoten in https://github.com/cockroachdb/apd/pull/110
- apd: use gcassert to check that tmp big.Ints don't escape, add to CI by @nvanbenschoten in https://github.com/cockroachdb/apd/pull/111
Full Changelog: https://github.com/cockroachdb/apd/compare/v2.0.2...v3.0.0