Skip to content

Commit b56059e

Browse files
ValarDragongithub-actions
andauthored
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>
1 parent 81de0f5 commit b56059e

File tree

17 files changed

+226
-90
lines changed

17 files changed

+226
-90
lines changed

CHANGELOG.md

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

4747
### State Compatible
4848

49+
* [#8006](https://github.com/osmosis-labs/osmosis/pull/8006) Speedup many BigDec operations
50+
4951
## v24.0.1
5052

5153
* [#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.12-0.20240408225837-67f8c78738d5
34-
github.com/osmosis-labs/osmosis/osmoutils v0.0.12-0.20240408225837-67f8c78738d5
35-
github.com/osmosis-labs/osmosis/x/epochs v0.0.8-0.20240408225837-67f8c78738d5
36-
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.14-0.20240408225837-67f8c78738d5
33+
github.com/osmosis-labs/osmosis/osmomath v0.0.12-0.20240410095049-0ddea0b91fb3
34+
github.com/osmosis-labs/osmosis/osmoutils v0.0.12-0.20240410095049-0ddea0b91fb3
35+
github.com/osmosis-labs/osmosis/x/epochs v0.0.8-0.20240410095049-0ddea0b91fb3
36+
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.14-0.20240410095049-0ddea0b91fb3
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.12-0.20240408225837-67f8c78738d5 h1:pZyMCkTQ4nMp1ChbNgzKXrYpcIxLk6AX+9e8NZIJU6k=
1521-
github.com/osmosis-labs/osmosis/osmomath v0.0.12-0.20240408225837-67f8c78738d5/go.mod h1:hYwwJYaa/ZMMOnt1ZI4l+PUm6DHOXQ9Y6z/2X2KuLeA=
1522-
github.com/osmosis-labs/osmosis/osmoutils v0.0.12-0.20240408225837-67f8c78738d5 h1:CZQ0B3+MgJsRFLR6+FSGgNahLWQR3z3YowIFPBmRRPs=
1523-
github.com/osmosis-labs/osmosis/osmoutils v0.0.12-0.20240408225837-67f8c78738d5/go.mod h1:9fv/2NlM74ry6hBA+MacKkDzfUAyx3wE8Km0khWIFcs=
1524-
github.com/osmosis-labs/osmosis/x/epochs v0.0.8-0.20240408225837-67f8c78738d5 h1:f1J5crRylc5M4O+Yd1pT0D+AidQlr/CCcMdxYJaIoF8=
1525-
github.com/osmosis-labs/osmosis/x/epochs v0.0.8-0.20240408225837-67f8c78738d5/go.mod h1:maN3wKem02iu0qE0YGZpMOJqaxyOpjROE5c4lpQaPRM=
1526-
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.14-0.20240408225837-67f8c78738d5 h1:DX1/Fn+8wzuMnuq8OSuvdefmbGClmUfWRhqatLDqIlY=
1527-
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.14-0.20240408225837-67f8c78738d5/go.mod h1:q0xsK7pab7ekvxM1YvoZ/DMW4gdTwFoz2jXTqNLuG7w=
1520+
github.com/osmosis-labs/osmosis/osmomath v0.0.12-0.20240410095049-0ddea0b91fb3 h1:2FRCIC8gXSACn9SMmZivBXYdND/O/xrYK9rRzdY/fSY=
1521+
github.com/osmosis-labs/osmosis/osmomath v0.0.12-0.20240410095049-0ddea0b91fb3/go.mod h1:I1Nw0VK1JOaZH5f0AFl4iFB2Qp2ckbH9a3Z4UZLpDbs=
1522+
github.com/osmosis-labs/osmosis/osmoutils v0.0.12-0.20240410095049-0ddea0b91fb3 h1:dJFXQbBbMZ9UDtIMseoGlBg4fe5rSui7x3x9baAGw9w=
1523+
github.com/osmosis-labs/osmosis/osmoutils v0.0.12-0.20240410095049-0ddea0b91fb3/go.mod h1:fo3rKZIybC/tRMX09a0W/1UBl9meK1+T4PmWs1wErHI=
1524+
github.com/osmosis-labs/osmosis/x/epochs v0.0.8-0.20240410095049-0ddea0b91fb3 h1:UGxPvBFipIM8q3SJUYRjSP0+D/3Y8BkZGLvO+ov/fYs=
1525+
github.com/osmosis-labs/osmosis/x/epochs v0.0.8-0.20240410095049-0ddea0b91fb3/go.mod h1:N2+CB3wWEN/HmtWNK9DjAN1WGLgqeRiGjs+ZhK3RXdQ=
1526+
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.14-0.20240410095049-0ddea0b91fb3 h1:QHtWt4M49bYH64Vy0DetURTtLGUIGWTpLOBIH9q/bhQ=
1527+
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.14-0.20240410095049-0ddea0b91fb3/go.mod h1:C4/AaeluMrYxFehK61WGXVG7DvofFUyit7Xb0QKyQPA=
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)