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 MerkleDB.commitChanges #2921

Merged
merged 16 commits into from Apr 8, 2024
Merged

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

This change is a pure refactor. The goal of this change is to enable easier benchmarking of commitChanges.

This also cleans up some span handling to avoid needing to manually End() any spans.

How this works

Renames commitChanges to commitView and introduces two new helpers: applyChanges and commitChanges.

How this was tested

  • CI

@StephenButtolph StephenButtolph added cleanup Code quality improvement merkledb labels Apr 7, 2024
@StephenButtolph StephenButtolph self-assigned this Apr 7, 2024
@StephenButtolph StephenButtolph added this to the v1.11.4 milestone Apr 7, 2024
@StephenButtolph StephenButtolph marked this pull request as draft April 7, 2024 18:04
@StephenButtolph StephenButtolph marked this pull request as ready for review April 7, 2024 18:35
Copy link
Contributor

@abi87 abi87 left a comment

Choose a reason for hiding this comment

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

lgtm

Base automatically changed from bytes-pool to master April 8, 2024 19:57
@StephenButtolph StephenButtolph added this pull request to the merge queue Apr 8, 2024
Merged via the queue into master with commit 0ba0ace Apr 8, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the cleanup-commit-to-db branch April 8, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement merkledb
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

5 participants