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

Use cached withdrawals in block production #4337

Conversation

michaelsproul
Copy link
Member

Issue Addressed

Another optimisation similar to #4314 and #4313.

Proposed Changes

Avoid re-computing the withdrawals during block production if they are already cached.

I need to benchmark this change before cleaning it up, as I think get_expected_withdrawals should actually be very fast already, and using the cache is probably an unnecessary complication.

@michaelsproul michaelsproul added work-in-progress PR is a work-in-progress optimization Something to make Lighthouse run more efficiently. labels May 26, 2023
@michaelsproul michaelsproul changed the base branch from stable to unstable May 26, 2023 10:14
@michaelsproul
Copy link
Member Author

This didn't seem to offer much performance benefit. Closing for now but may revisit later.

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. work-in-progress PR is a work-in-progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant