-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: skip calculation of partial sums when simulating blobs (#11257)
When simulating the bloblib we're constructing this `partial_sums` array despite the fact we're going to throw it away except for the final element. This means that we're - needing to deal with the indirection of reading/writing to arrays - increasing the reference counts of the partial sums so we need to do more copying. This PR adds a specialized version of computing the sum which only runs during simulation which cuts `rollup-block-root` from 54859 brillig opcodes to 51480.
- Loading branch information
1 parent
54e9602
commit aca66f7
Showing
3 changed files
with
77 additions
and
28 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