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 the mutex in the merkle and use an UnsafeCell #2313

Closed
wants to merge 1 commit into from

Conversation

PlasmaPower
Copy link
Collaborator

This needs comments and is completely untested, it's just a first draft, but hopefully it's a good starting point. I think this should both make the implementation faster and remove the risk of deadlocks, at the risk of a safety issue, though I think the safety of this is pretty easy to reason about. The DirtyMerkleData can only be mutated with a mutable reference to a DirtyMerkle or inside the clean's Once, and those can only happen once at a time and are mutually exclusive.

@PlasmaPower PlasmaPower requested a review from eljobe May 17, 2024 17:29
@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label May 17, 2024
@eljobe eljobe deleted the merkle-rm-mutex branch July 25, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant