Commit f96c1eb
authored
fix: Convert folding recursive verifier ops to batch mul (AztecProtocol#4517)
Updates folding recursive verifier to use batch_mul for optimal goblin
ec op efficiency. This reduces a single recursive verification from 1144
ECC ops to 264. (Note: 264 = 6*44 where 6 is the number of ecc op gate
rows needed for two scalar muls (one for each instance) plus an "equals"
op and 44 is the number of witnesses plus precomputed polys, not
including shifts)
Closes AztecProtocol/barretenberg#849
New benchmark result:
```
-----------------------------------------------------------------
Benchmark Time CPU Iterations
-----------------------------------------------------------------
IvcBench/Full/6 54156 ms 51691 ms 1
```
Old benchmark result:
```
-----------------------------------------------------------------
Benchmark Time CPU Iterations
-----------------------------------------------------------------
IvcBench/Full/6 66891 ms 63569 ms 1
```1 parent 5f19452 commit f96c1eb
1 file changed
Lines changed: 14 additions & 13 deletions
File tree
- barretenberg/cpp/src/barretenberg/stdlib/recursion/honk/verifier
Lines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | 191 | | |
194 | 192 | | |
195 | 193 | | |
| |||
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
247 | | - | |
248 | 245 | | |
249 | | - | |
| 246 | + | |
| 247 | + | |
250 | 248 | | |
251 | 249 | | |
252 | | - | |
| 250 | + | |
| 251 | + | |
253 | 252 | | |
254 | 253 | | |
| 254 | + | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 256 | + | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
321 | 320 | | |
322 | 321 | | |
323 | 322 | | |
324 | | - | |
| 323 | + | |
| 324 | + | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
| 330 | + | |
329 | 331 | | |
330 | | - | |
331 | | - | |
332 | | - | |
| 332 | + | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| |||
0 commit comments