-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memory machine: Only use the necessary size (#1680)
Builds on #1666 Now, the memory machine is downsized to the smallest possible size: ``` $ MAX_DEGREE_LOG=10 cargo run -r pil test_data/asm/dynamic_vadcop.asm -o output -f --field bn254 --prove-with halo2-mock-composite ... Running main machine for 1024 rows [00:00:00 (ETA: 00:00:00)] ░░░░░░░░░░░░░░░░░░░░ 0% - Starting... Found loop with period 1 starting at row 100 [00:00:00 (ETA: 00:00:00)] ████████████████████ 100% - 280269 rows/s, 4205k identities/s, 94% progress Resizing variable length machine 'Secondary machine 0: main_arith (BlockMachine)': 1024 -> 32 (rounded up from 3) Resizing variable length machine 'Secondary machine 1: main_memory (DoubleSortedWitnesses)': 1024 -> 32 (rounded up from 4) Witness generation took 0.005317875s Writing output/commits.bin. Instantiating a composite backend with 5 machines: ... == Proving machine: main (size 1024), stage 0 ==> Proof stage computed in 15.581958ms == Proving machine: main__rom (size 16), stage 0 ==> Proof stage computed in 800.708µs == Proving machine: main_arith (size 32), stage 0 ==> Proof stage computed in 506.25µs == Proving machine: main_byte2 (size 65536), stage 0 ==> Proof stage computed in 84.450916ms == Proving machine: main_memory (size 32), stage 0 ==> Proof stage computed in 719.375µs Proof generation took 0.102423415s Proof size: 88 bytes Writing output/dynamic_vadcop_proof.bin. ```
- Loading branch information
1 parent
88785a8
commit 5e0ae17
Showing
3 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
30 changes: 29 additions & 1 deletion
30
...data/asm/vm_to_block_different_length.asm → test_data/asm/dynamic_vadcop.asm
This file contains 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