Skip to content

Commit 3c70344

Browse files
p0mvnValarDragongithub-actions
authored
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

21 files changed

+501
-250
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4848

4949
### State Compatible
5050

51+
* [#8006](https://github.com/osmosis-labs/osmosis/pull/8006), [#8014](https://github.com/osmosis-labs/osmosis/pull/8014) Speedup many BigDec operations
52+
5153
## v24.0.1
5254

5355
* [#7994](https://github.com/osmosis-labs/osmosis/pull/7994) Async pruning for IAVL v1

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ require (
3030
github.com/mattn/go-sqlite3 v1.14.17
3131
github.com/ory/dockertest/v3 v3.10.0
3232
github.com/osmosis-labs/go-mutesting v0.0.0-20221208041716-b43bcd97b3b3
33-
github.com/osmosis-labs/osmosis/osmomath v0.0.11-0.20240409164616-caf6b6543d4b
34-
github.com/osmosis-labs/osmosis/osmoutils v0.0.11-0.20240409164616-caf6b6543d4b
35-
github.com/osmosis-labs/osmosis/x/epochs v0.0.7-0.20240409164616-caf6b6543d4b
36-
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.13-0.20240409164616-caf6b6543d4b
33+
github.com/osmosis-labs/osmosis/osmomath v0.0.11-0.20240412194904-615994cda7a7
34+
github.com/osmosis-labs/osmosis/osmoutils v0.0.11-0.20240412194904-615994cda7a7
35+
github.com/osmosis-labs/osmosis/x/epochs v0.0.7-0.20240412194904-615994cda7a7
36+
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.13-0.20240412194904-615994cda7a7
3737
github.com/osmosis-labs/sqs/sqsdomain v0.0.0-20240404053421-41aab009fb04
3838
github.com/pkg/errors v0.9.1
3939
github.com/rakyll/statik v0.1.7

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,14 +1517,14 @@ github.com/osmosis-labs/cosmos-sdk v0.47.5-v24-osmo-5 h1:fnt89Cw+55vbnIEGkpCmj0c
15171517
github.com/osmosis-labs/cosmos-sdk v0.47.5-v24-osmo-5/go.mod h1:eSRUVYwL3eG1jnh01CnBbHiqOM3xJO49p5rTOrSFX1k=
15181518
github.com/osmosis-labs/go-mutesting v0.0.0-20221208041716-b43bcd97b3b3 h1:YlmchqTmlwdWSmrRmXKR+PcU96ntOd8u10vTaTZdcNY=
15191519
github.com/osmosis-labs/go-mutesting v0.0.0-20221208041716-b43bcd97b3b3/go.mod h1:lV6KnqXYD/ayTe7310MHtM3I2q8Z6bBfMAi+bhwPYtI=
1520-
github.com/osmosis-labs/osmosis/osmomath v0.0.11-0.20240409164616-caf6b6543d4b h1:hZQXid/cFL99otySUdTvbhA3Bvm7armJpg0eoYNWOVU=
1521-
github.com/osmosis-labs/osmosis/osmomath v0.0.11-0.20240409164616-caf6b6543d4b/go.mod h1:VVYCajgH7LwyzCt/5jpGLF6miIge14f+qffBnhQtHzg=
1522-
github.com/osmosis-labs/osmosis/osmoutils v0.0.11-0.20240409164616-caf6b6543d4b h1:7cMn+l3A0u38AOP9jdLW9J8ZqGCoARuu4UKvrg6xQSk=
1523-
github.com/osmosis-labs/osmosis/osmoutils v0.0.11-0.20240409164616-caf6b6543d4b/go.mod h1:pBGdIh7mLeiZPCAAT48sBR863JhUbtoFb6v7XOo0aNM=
1524-
github.com/osmosis-labs/osmosis/x/epochs v0.0.7-0.20240409164616-caf6b6543d4b h1:xPt43uItkWoJ7On0V+i9Futuibmz/jzr3222rnLS4UQ=
1525-
github.com/osmosis-labs/osmosis/x/epochs v0.0.7-0.20240409164616-caf6b6543d4b/go.mod h1:0Z9guabFPOQVHMNXmJ7TdqmRpEMPp4WmjztSErsFB2E=
1526-
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.13-0.20240409164616-caf6b6543d4b h1:M+MaVJCPKMQHcZ54ODbMTyE0vPZXXtA9IopTGqRDWZY=
1527-
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.13-0.20240409164616-caf6b6543d4b/go.mod h1:ULsY82IKYeDHry0MRMvzg/QG6wTzFLYZLhB1h+5yXUM=
1520+
github.com/osmosis-labs/osmosis/osmomath v0.0.11-0.20240412194904-615994cda7a7 h1:enWciQKZWpgKmtH4FWJlfwe6bFAtntOEq6vS4DHLdMs=
1521+
github.com/osmosis-labs/osmosis/osmomath v0.0.11-0.20240412194904-615994cda7a7/go.mod h1:AMttEBTMw0GWkSxLR826nL6Q0fd0OH1Yw7S36EkBSR4=
1522+
github.com/osmosis-labs/osmosis/osmoutils v0.0.11-0.20240412194904-615994cda7a7 h1:rG7o39SiNvKozh93OO+DI3yODEpIpNjzY54eVHP2XF4=
1523+
github.com/osmosis-labs/osmosis/osmoutils v0.0.11-0.20240412194904-615994cda7a7/go.mod h1:3L9bl0KpynoCZOYs98UVWkI8fBPYQgfFjbM5N2Fm878=
1524+
github.com/osmosis-labs/osmosis/x/epochs v0.0.7-0.20240412194904-615994cda7a7 h1:d8y9ZXEl3lbDFH73Jeom44WsgWiB5Sh5Gvrkrwq3wJE=
1525+
github.com/osmosis-labs/osmosis/x/epochs v0.0.7-0.20240412194904-615994cda7a7/go.mod h1:4zvJb0wcbLi3NnRqRAwfF/zH1F47z3VXIN/62D7zuFc=
1526+
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.13-0.20240412194904-615994cda7a7 h1:I6lOTtZDx7bhhD/rW7Z8taAWv/1TmIMgwvGDhdEjsyw=
1527+
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.13-0.20240412194904-615994cda7a7/go.mod h1:6C7jnwURME4NgaGX1VIrrU6cS2E0Xzy9AhvqlN8hUTw=
15281528
github.com/osmosis-labs/sqs/sqsdomain v0.0.0-20240404053421-41aab009fb04 h1:mvkk1A/jIe+lsFFpRNfyd9UfvhagATdpnjy8K7kANeo=
15291529
github.com/osmosis-labs/sqs/sqsdomain v0.0.0-20240404053421-41aab009fb04/go.mod h1:mYYf7pYb7sGJ9zYIOw2aYlIl5cgKT0K93rZx4LvDAuA=
15301530
github.com/osmosis-labs/wasmd v0.45.0-osmo h1:NIp7pvJV5HuBN1HwPgEmXKQM2TjVIVdJErIHnB9IMO8=

0 commit comments

Comments
 (0)