Releases: cockroachdb/apd
Releases · cockroachdb/apd
v3.2.2
What's Changed
- apd: add go 1.21 and 1.22 testing to CI by @nvb in #131
- Allow decompose to make use of the buffer by @Gilthoniel in #132
- apd: fix TestFormatFlags on go 1.23, add go 1.23 to CI by @nvb in #139
- ci: update GitHub Actions and OS versions by @mw5h in #146
- apd: prevent NewFromString parsing invalid decimals by @jms-bc in #145
- ci: enable gcassert on Go 1.24 by @mw5h in #148
- fix negative zero from multiplication/division by zero bigint by @mhaddon in #143
New Contributors
- @Gilthoniel made their first contribution in #132
- @mw5h made their first contribution in #146
- @jms-bc made their first contribution in #145
- @mhaddon made their first contribution in #143
Full Changelog: v3.2.1...v3.2.2
v3.2.1
What's Changed
- apd: Improve SetFloat64 efficiency by @miretskiy in #129
- format: do not output 0's after decimals for 0 with coeff < -2000 by @otan in #130
Full Changelog: v3.2.0...v3.2.1
v3.2.0
What's Changed
- apd: add go 1.19 testing to CI by @nvanbenschoten in #126
- apd: add go 1.20 testing to CI by @nvanbenschoten in #127
- format: format 0E-x where x > 6 like PostgreSQL does by @otan in #128
Full Changelog: v3.1.2...v3.2.0
v3.1.2
What's Changed
- apd: Improve string conversion efficiency by @miretskiy in #125
New Contributors
- @miretskiy made their first contribution in #125
Full Changelog: v3.1.1...v3.1.2
v3.1.1
What's Changed
- apd: disable staticcheck on Go 1.16 and earlier by @nvanbenschoten in #117
- apd: add go 1.18 testing to CI by @nvanbenschoten in #118
- apd: remove some allocs from Decimal.setString by @josharian in #116
- apd: add inline fast-path to BigInt.SetString by @nvanbenschoten in #119
- apd: drop github.com/pkg/errors by @nvanbenschoten in #124
New Contributors
- @josharian made their first contribution in #116
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- apd: optimize Quo, remove per-digit long division by @nvanbenschoten in #114
- apd: don't strip trailing zeros in Quo and Sqrt by @nvanbenschoten in #115
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's Changed
- apd: avoid function calls on hot paths by @nvanbenschoten in #112
Full Changelog: v3.0.0...v3.0.1
v3.0.0
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 #88
- add some linting to travis by @mjibson in #92
- apd: update decomposer methods to use big-endian coefficent by @kardianos in #93
- apd: perform CI using GitHub Actions by @nvanbenschoten in #106
- apd: prevent (*Decimal).Int64 receiver from escaping to heap by @nvanbenschoten in #104
- apd: embed small coefficient values in Decimal struct by @nvanbenschoten in #103
- apd: add apd.BigInt / math/big.Int interop methods by @nvanbenschoten in #108
- apd: tune performance by inlining function calls and manually unrolling loops by @nvanbenschoten in #107
- apd: add inline fast-path to BigInt.Format by @nvanbenschoten in #109
- apd: support and test 32-bit architectures and ARM architectures by @nvanbenschoten in #110
- apd: use gcassert to check that tmp big.Ints don't escape, add to CI by @nvanbenschoten in #111
Full Changelog: v2.0.2...v3.0.0
v2.0.2
v2.0.1: Merge pull request #85 from cockroachdb/mjibson-patch-1
- Use go.mod tag.