Add paralelization of polynomials in GenerateProof

- before:
BenchmarkGenerateProof-4               1        1553842743 ns/op
For a circuit of 9094 constraints takes 7.761949512s seconds to generate the proof.

- now:
BenchmarkGenerateProof-4               1        1331576862 ns/op
For a circuit of 9094 constraints takes 5.745279126s to generate the proof.

For bigger circuits (more constraints) the difference will be bigger.

Executed on a Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, with 16GB of RAM
This commit is contained in:
arnaucube
2020-04-24 10:50:28 +02:00
parent 569d16844d
commit 3691785054
3 changed files with 58 additions and 22 deletions

1
.gitignore vendored
View File

@@ -3,5 +3,6 @@ testdata/*/*.wasm
testdata/*/*.cpp
testdata/*/*.sym
testdata/*/*.r1cs
testdata/*/*.sol
!testdata/*/input.json
cli/*.json