-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(engine): cli argument to disable state cache #20143
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
base: main
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| /// Setter for whether to disable state cache. | ||
| pub const fn without_state_cache(mut self, disable_state_cache: bool) -> Self { |
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.
without is weird to me but i see its used by others as well
mattsse
left a comment
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.
doesnt this still handle cache updates after execution?
02f8aa0 to
b82afb8
Compare
Rjected
left a comment
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
yongkangc
left a comment
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.
Nice
c58b06a to
b82afb8
Compare
mattsse
left a comment
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 feels a bit messy
how does prewarm behave if caching is disabled?
should we even do prewarm if we don't make use of the shared cache or only for the proof prep?
| let elapsed = start.elapsed(); | ||
| debug!(target: "engine::caching", parent_hash=?hash, elapsed=?elapsed, "Updated execution cache"); |
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.
these are now misleading if there's no cache
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.
it's gated behind if let Some(saved_cache) = saved_cache which is triggered only if we use state cache
|
@mattsse prewarm is used for proofs even without the state cache, yes |
Adds an ability to disable cached state provider by passing
--engine.disable-state-cacheCLI argument.