-
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.
Downsize VMs when they reach a loop (#1676)
Builds on #1666 With this PR, Witgen choses the minimum possible size of VMs (rounding to the next power of two after first detecting a loop): ``` $ MAX_DEGREE_LOG=10 cargo run -r pil test_data/asm/vm_to_block_different_length.asm -o output -f --field bn254 --prove-with halo2-composite ... == Proving machine: main (size 128), stage 0 Starting proof generation... Generating PK for snark... Generating proof... Time taken: 59.970083ms Proof generation done. ==> Proof stage computed in 81.618417ms == Proving machine: main__rom (size 8), stage 0 Starting proof generation... Generating PK for snark... Generating proof... Time taken: 12.319334ms Proof generation done. ==> Proof stage computed in 29.754417ms == Proving machine: main_arith (size 32), stage 0 Starting proof generation... Generating PK for snark... Generating proof... Time taken: 20.056834ms Proof generation done. ==> Proof stage computed in 32.017167ms Proof generation took 0.14349297s Proof size: 8296 bytes ```
- Loading branch information
1 parent
2b9984c
commit 88785a8
Showing
4 changed files
with
60 additions
and
13 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
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