feat(execution_utils): support pre-computed UnrolledProver setup cache#292
Draft
Deniallugo wants to merge 1 commit into
Draft
feat(execution_utils): support pre-computed UnrolledProver setup cache#292Deniallugo wants to merge 1 commit into
Deniallugo wants to merge 1 commit into
Conversation
Add `UnrolledProver::new_with_cache` and `dump_cache` plus a serializable `UnrolledProverCache` so a freshly-started prover can skip the multi-minute setup compute by reusing a snapshot from a previous run. Validate the cached security level and `max_level` against the requested configuration; the caller is expected to key cache files on a binary fingerprint to detect stale binaries. Adds serde derives to `SecurityModel` (already a serde-features dep) so it can ride along in the cache envelope.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What ❔
Add
UnrolledProver::new_with_cacheanddump_cacheplus a serializableUnrolledProverCacheValidate the cached security level andmax_levelagainst the requested configuration; the caller is expected to key cache files on a binary fingerprint to detect stale binaries.Adds serde derives to
SecurityModel(already a serde-features dep) so it can ride along in the cache envelope.Why ❔
freshly-started prover can skip the multi-minute setup compute by reusing a snapshot from a previous run
Is this a breaking change?
Checklist