Commit 6298419
BigDec operation speedups (#8006)
* Rename precisionReuse and use squaredPrecisionReuse properly
* Remove redundant copies for chop operations
* Speedup RoundUpMut failed, just committing benchmark
* CL notes
* Speedup Truncate routines by saving ~2 word sizes
* Add BigDec x Dec fns
* Minor approx root spedup
* Driveby, better mut usage in stableswap
* Add AbsMut
* Auto: update go.mod after push to dev/bigdec_speedups that modified dependencies locally
---------
Co-authored-by: github-actions <github-actions@github.com>
(cherry picked from commit b56059e)
# Conflicts:
# go.mod
# go.sum
# osmomath/go.mod
# osmomath/go.sum
# osmoutils/go.mod
# osmoutils/go.sum
# x/epochs/go.mod
# x/epochs/go.sum
# x/ibc-hooks/go.mod
# x/ibc-hooks/go.sum1 parent 0021d38 commit 6298419
File tree
17 files changed
+264
-54
lines changed- osmomath
- osmoutils
- x
- concentrated-liquidity
- math
- swapstrategy
- epochs
- gamm/pool-models/stableswap
- ibc-hooks
17 files changed
+264
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1517 | 1517 | | |
1518 | 1518 | | |
1519 | 1519 | | |
| 1520 | + | |
1520 | 1521 | | |
1521 | 1522 | | |
1522 | 1523 | | |
| |||
1525 | 1526 | | |
1526 | 1527 | | |
1527 | 1528 | | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1528 | 1539 | | |
1529 | 1540 | | |
1530 | 1541 | | |
| |||
0 commit comments