Commit 301ac7b
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 85cf06b commit 301ac7b
File tree
17 files changed
+289
-54
lines changed- osmomath
- osmoutils
- x
- concentrated-liquidity
- math
- swapstrategy
- epochs
- gamm/pool-models/stableswap
- ibc-hooks
17 files changed
+289
-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 | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1510 | 1510 | | |
1511 | 1511 | | |
1512 | 1512 | | |
| 1513 | + | |
1513 | 1514 | | |
1514 | 1515 | | |
1515 | 1516 | | |
| |||
1522 | 1523 | | |
1523 | 1524 | | |
1524 | 1525 | | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1525 | 1538 | | |
1526 | 1539 | | |
1527 | 1540 | | |
| |||
0 commit comments