-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(avm): parallelize polynomial alloc and set (#8520)
This PR * Parallelizes allocation and initialization of prover polys * Removes duplicated initialization * Removes copy (replaces with move) Improvements in proving time for a 2^20 trace * Creation of prover time goes down 90% * Overall proving time goes down ~40% 2^20 before ``` >>> prove/create_prover_ms: 53011 >>> prove/all_ms: 95457 prove/create_composer_ms: 0 prove/create_verifier_ms: 322 prove/execute_log_derivative_inverse_commitments_round_ms: 2579 prove/execute_log_derivative_inverse_round_ms: 2294 prove/execute_pcs_rounds_ms: 1915 prove/execute_relation_check_rounds_ms: 12066 prove/execute_wire_commitments_round_ms: 1138 prove/gen_trace_ms: 18690 ``` 2^20 after ``` >>> prove/create_prover_ms: 5797 >>> prove/all_ms: 50688 circuit_builder/init_polys_to_be_shifted_ms: 660 circuit_builder/init_polys_unshifted_ms: 301 circuit_builder/set_polys_shifted_ms: 0 circuit_builder/set_polys_unshifted_ms: 4395 composer/create_prover:commitment_key_ms: 152 composer/create_prover:construct_prover_ms: 55 composer/create_prover:proving_key_ms: 177 composer/create_prover:witness_ms: 5410 prove/create_composer_ms: 0 prove/create_verifier_ms: 326 prove/execute_log_derivative_inverse_commitments_round_ms: 2523 prove/execute_log_derivative_inverse_round_ms: 2185 prove/execute_pcs_rounds_ms: 1766 prove/execute_relation_check_rounds_ms: 11966 prove/execute_wire_commitments_round_ms: 1148 prove/gen_trace_ms: 20765 ```
- Loading branch information
Showing
9 changed files
with
735 additions
and
718 deletions.
There are no files selected for viewing
1,343 changes: 679 additions & 664 deletions
1,343
barretenberg/cpp/src/barretenberg/vm/avm/generated/circuit_builder.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
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
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