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

Add an LRU cache for tick to sqrt price #167

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

ValarDragon
Copy link
Member

In CPU profiles we see Tick To Sqrt Price is costly, so here we just cache that call entirely. Along with osmosis-labs/osmosis#8014 I expect this to eliminate most of the current per-call overhead of CL routings.

This handles osmosis-labs/osmosis#8015

Copy link
Member

@p0mvn p0mvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@p0mvn p0mvn merged commit 4a528c6 into v23.x Apr 12, 2024
4 of 6 checks passed
@p0mvn p0mvn deleted the dev/use_LRU_tick_to_sqrt_price_cache branch April 12, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants