Skip to content

feat(execution_utils): support pre-computed UnrolledProver setup cache#292

Draft
Deniallugo wants to merge 1 commit into
devfrom
deniallugo/setup-cache
Draft

feat(execution_utils): support pre-computed UnrolledProver setup cache#292
Deniallugo wants to merge 1 commit into
devfrom
deniallugo/setup-cache

Conversation

@Deniallugo

@Deniallugo Deniallugo commented May 6, 2026

Copy link
Copy Markdown

What ❔

Add UnrolledProver::new_with_cache and dump_cache plus a serializable UnrolledProverCache 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.

Why ❔

freshly-started prover can skip the multi-minute setup compute by reusing a snapshot from a previous run

Is this a breaking change?

  • Yes
  • No

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted.

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.
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.

1 participant