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

chore: allow optional proof shape in core record and program #1460

Merged
merged 3 commits into from
Aug 31, 2024

Conversation

erabinov
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Aug 30, 2024

SP1 Performance Test Results

Branch: erabinov/proof_shapes
Commit: 140da0f5
Author: erabinov

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 2.26 5.91 0.79 16s
ssz-withdrawals 2757356 7.61 57.57 110.15 1m13s
tendermint 12593597 5.57 149.13 269.86 2m13s

@erabinov erabinov changed the title feat: allow optional proof shape in record and program chore: allow optional proof shape in record and program Aug 30, 2024
@erabinov erabinov changed the title chore: allow optional proof shape in record and program chore: allow optional proof shape in core record and program Aug 30, 2024
@@ -25,13 +26,15 @@ pub struct Program {
pub pc_base: u32,
/// The initial memory image, useful for global constants.
pub memory_image: BTreeMap<u32, u32>,
/// The shape for the preprocessed tables.
pub shape: Option<CoreShape>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to preprocessed_shape?

pad_rows_fixed(
&mut rows,
|| [F::zero(); NUM_ADD_SUB_COLS],
input.shape.as_ref().map(|s: &CoreShape| s.shape[&MachineAir::<F>::name(self)]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor to a method on program and a method on record

@tamirhemo tamirhemo merged commit 54f0a60 into tamir/v1.3.0-rc2 Aug 31, 2024
6 checks passed
@tamirhemo tamirhemo deleted the erabinov/proof_shapes branch August 31, 2024 01:48
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