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

optimization for reading peak hashes from backend file #3575

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

antiochp
Copy link
Member

We do a lot of reading peak hashes from the backend PMMR file.
When we compute the new root hash we hash all the peaks together.

Peaks are never compacted away while they exist as peaks in the PMMR.
So we can introduce a small optimization as we do not need to check for is_compacted for these.

@antiochp antiochp mentioned this pull request Feb 24, 2021
@antiochp antiochp merged commit adddff9 into mimblewimble:master Feb 24, 2021
@antiochp antiochp deleted the read_peak_from_file branch February 24, 2021 16:17
@antiochp antiochp mentioned this pull request May 6, 2021
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