-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: optimise polynomial initialisation (#10073)
Analysing the impact of using a large ambient trace (2^20) in the ClientIVC bench, with no changes to the circuit, one culprit is initalisation of polynomials defined over the full domain with 0. As such, I parallelised the initialisation function inside the polynomial class, which also brings improvement to the Client IVC bench as it is. Default benchmark NOW: ``` -------------------------------------------------------------------------------- Benchmark Time CPU -------------------------------------------------------------------------------- ClientIVCBench/Full/6 29956 ms 28100 ms ``` BEFORE: ``` -------------------------------------------------------------------------------- Benchmark Time CPU -------------------------------------------------------------------------------- ClientIVCBench/Full/6 32341 ms 30470 ms ``` Benchmark with 2^20 ambient trace NOW: ``` -------------------------------------------------------------------------------- Benchmark Time CPU -------------------------------------------------------------------------------- ClientIVCBench/Full/6 39013 ms 36526 ms ``` BEFORE: ``` -------------------------------------------------------------------------------- Benchmark Time CPU -------------------------------------------------------------------------------- ClientIVCBench/Full/6 44346 ms 41778 ms ``` Note: this is disabled for AVM as they do parallel polynomial construction and have smaller polynomials.
- Loading branch information
1 parent
b8bace9
commit e608742
Showing
5 changed files
with
78 additions
and
52 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
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