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

refactor: avoid copying overhead in PeriodLocks #7191

Closed
wants to merge 2 commits into from

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Dec 22, 2023

Closes: #XXX

What is the purpose of the change

Removes overhead from copying PeriodLock structs by using pointers instead.

Did a hack in queries to convert from pointers to structs to avoid API breakage.

Testing and Verifying

Synched node through epoch.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

Looks great to me! We just should sync it for say 1k blocks before tagging

@ValarDragon ValarDragon added V:state/compatible/backport State machine compatible PR, should be backported A:backport/v21.x backport patches to v21.x branch labels Dec 22, 2023
@p0mvn
Copy link
Member Author

p0mvn commented Dec 22, 2023

Closing in favor of: #7192

Proved to be faster due to extensive garbage collection here

@p0mvn p0mvn closed this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v21.x backport patches to v21.x branch C:simulator Edits simulator or simulations C:x/incentives C:x/lockup C:x/superfluid V:state/compatible/backport State machine compatible PR, should be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants