Commit 3c70344
Roman/backport dev math speed up v24 (#8037)
* BigDec operation speedups (backport #8006)
* Speedup quo round up, start CL speedup integration (#8014)
* Speedup quo round up
* Code reuse
* Missed a code re-use point
* Add future notes
* Comment cleanup
* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally
* Add new fn: NewBigDecFromDecMulDec
* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally
* Remove some extra ops from CL
* Further perf notes
* Make faster QuoRoundUpNextIntMut
* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally
* Remove another 2 BigDec ops
* Add another dec op
* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally
* Start moving some liquidity calls to Dec not BigDec
* One more BigDec x Dec op
* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally
* Another liq BigDec -> Dec
* Missed one step
* Move another Liquidity BigDec -> Dec
* Minor spread reward update
* Make CalcAmount1Dec use Dec for Liquidity
* Make one more op mutative
* One more speedup
* Fix test
* Speedup SpotPrice impl
---------
Co-authored-by: github-actions <github-actions@github.com>
* updates
* updates
---------
Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>1 parent e874c8f commit 3c70344
File tree
21 files changed
+501
-250
lines changed- osmomath
- x
- concentrated-liquidity
- math
- model
- swapstrategy
- epochs
- gamm/pool-models/stableswap
- ibc-hooks
21 files changed
+501
-250
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1517 | 1517 | | |
1518 | 1518 | | |
1519 | 1519 | | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
1527 | | - | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
1528 | 1528 | | |
1529 | 1529 | | |
1530 | 1530 | | |
| |||
0 commit comments