Skip to content

Optimization to Redb slasher #6481

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

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Conversation

eserilev
Copy link
Member

Upgraded to redb 2.1.4 which introduces optimizations to first() and last()

https://github.com/cberner/redb/releases/tag/v2.1.4

Updated the redb slasher to use those methods instead of using iter().next() and iter().next_back()

@eserilev eserilev added slasher optimization Something to make Lighthouse run more efficiently. ready-for-review The code is ready for review labels Oct 11, 2024
@michaelsproul michaelsproul added the v6.0.0 New major release for hierarchical state diffs label Oct 11, 2024
Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

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

Straight forward change, looks good!

almost 2x faster

👀

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Oct 14, 2024
@michaelsproul
Copy link
Member

@mergify queue

Copy link

mergify bot commented Oct 17, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 7091c78

mergify bot added a commit that referenced this pull request Oct 17, 2024
@mergify mergify bot merged commit 7091c78 into sigp:unstable Oct 17, 2024
29 checks passed
chong-he pushed a commit to chong-he/lighthouse that referenced this pull request Nov 26, 2024
* first() & last() optimizations

* Fmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Something to make Lighthouse run more efficiently. ready-for-merge This PR is ready to merge. slasher v6.0.0 New major release for hierarchical state diffs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants