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

Interior mutability #50

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Interior mutability #50

wants to merge 2 commits into from

Conversation

michaelsproul
Copy link
Member

This is an attempt to remove the need for mutability in TreeHash, by using ArcSwap and RwLock to handle the pending updates.

Alternative to these other 2 approaches which hit dead ends:

@dapplion
Copy link

dapplion commented Oct 2, 2024

What's the expected overhead of these locks?

@michaelsproul
Copy link
Member Author

A few ms max, but let's do some benchmarks once it works.

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.

2 participants