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

Remove diff feature #30

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Remove diff feature #30

merged 1 commit into from
Oct 26, 2023

Conversation

michaelsproul
Copy link
Member

@michaelsproul michaelsproul commented Sep 25, 2023

Milhouse's diffs are currently unused in Lighthouse, because we've opted to use xdelta3 instead. The diffs from xdelta3 over a binary BeaconState are around 12x smaller, and take a similar amount of time to compute (source). Using the same diff algorithm for the historic states and hot states also provides a nice simplification.

By removing the diff feature from Milhouse, we make reviews & refactors easier. In particular, I would still like to pursue the "large nodes" optimisation, which cut across all parts of the codebase.

In future we could revive the diff feature by reverting this PR.

@michaelsproul michaelsproul merged commit 6c82029 into main Oct 26, 2023
@michaelsproul michaelsproul deleted the rm-diff branch October 26, 2023 22:21
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.

1 participant