Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(sdk.Context): Slow KVStore operation #14202

Closed
testinginprod opened this issue Dec 7, 2022 · 3 comments
Closed

perf(sdk.Context): Slow KVStore operation #14202

testinginprod opened this issue Dec 7, 2022 · 3 comments
Assignees
Labels
T: Performance Performance improvements

Comments

@testinginprod
Copy link
Contributor

The operation to get a KVStore given a store key is too slow for what it does, which should be a simple map lookup and a gaskv wrapping:

goos: darwin
goarch: arm64
pkg: github.com/cosmos/cosmos-sdk/types
BenchmarkContext_KVStore
BenchmarkContext_KVStore-10    	 8278102	       158.2 ns/op
PASS
@ValarDragon
Copy link
Contributor

Agreed, have ran into this being an oddly high slowdown in our tests as well

@tac0turtle
Copy link
Member

Was this closed @testinginprod

@testinginprod
Copy link
Contributor Author

yes @tac0turtle was closed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Performance Performance improvements
Projects
None yet
Development

No branches or pull requests

3 participants