Commit d508fb7
committed
feat: searching for nullifiers and tags concurrently (#19735)
Closes
https://linear.app/aztec-labs/issue/F-159/search-for-nullifiers-and-tags-concurrently
Roundtrips before optimization:
```
║ Configuration: ecdsar1+private_fpc ║
║ Total Round Trips: 195 ║
║ Payment Method: private_fpc ║
║ ║
║ Per Round Trip: ║
║ RT 1: [getNodeInfo] ║
║ ...
║ RT 36: [getL2Tips, getBlockHeader, getL2Tips, getBlockHeader] ║
║ RT 37: [getPrivateLogsByTags, getPrivateLogsByTags] ║
║ RT 38: [findLeavesIndexes] ║
║ ...
```
(RT 36 and 37 correspond solely to `syncTaggedLogs`, RT 38 to
`syncNoteNullifiers`)
after optimization:
```
║ Configuration: ecdsar1+private_fpc ║
║ Total Round Trips: 189 ║
║ Payment Method: private_fpc ║
║ ║
║ Per Round Trip: ║
║ RT 1: [getNodeInfo] ║
║ ...
║ RT 36: [findLeavesIndexes, getL2Tips, getBlockHeader, getL2Tips, getBlockHeader] ║
║ RT 37: [getPrivateLogsByTags, getPrivateLogsByTags] ║
```
We can see that RT 38 got merged with RT 36 and for the full run we
saved 6 round trips 🎉🎉🎉🚀🚀🚀1 parent 4133a5b commit d508fb7
File tree
1 file changed
+9
-3
lines changed- yarn-project/pxe/src/contract_function_simulator/oracle
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | 353 | | |
356 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
357 | 363 | | |
358 | 364 | | |
359 | 365 | | |
| |||
0 commit comments