-
Notifications
You must be signed in to change notification settings - Fork 8
feat: child db for concurrent state #87
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just two comments
} | ||
} | ||
|
||
// TODO make cache aware of transitions dropping by having global transition counter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's ticket this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is actually reproduced from revm. And I don't think they are planning on it anytime soon.
/// the child may be cloned AFTER this check is made, but BEFORE the child | ||
/// is merged. In this case the function will spuriously return `Ok(())` | ||
/// even though the merge will fail. To avoid this, ensure that the child | ||
/// is not shared between threads when [`Self::can_merge`] is called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really really far out idea that might not be worth the trouble, but what if we codify this rule into some state machine-like type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be possible but seems like more effort than it's worth 🤔
Allows
Arc<ConcurrentState>
to spawn and absorbChild
DBs