feat: parallelize ACIR parsing and decompression#20873
Merged
ludamad merged 4 commits intoFeb 27, 2026
Merged
Conversation
Parallelize the two independent loops in private_execution_steps.cpp: 1. PrivateExecutionSteps::parse() - deserializes ACIR bytecode/witnesses 2. PrivateExecutionStepRaw::load_and_decompress() - decompresses gzip data Both loops operate on independent per-step data with preallocated output vectors, making them trivially parallelizable. The original blocker (bincode thread-safety) is no longer relevant since the format migrated to msgpack. Closes AztecProtocol/barretenberg#1395 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ludamad
approved these changes
Feb 27, 2026
ludamad
approved these changes
Feb 27, 2026
johnathan79717
pushed a commit
that referenced
this pull request
Mar 4, 2026
## Summary - Parallelizes `PrivateExecutionSteps::parse()` — deserializes each step's ACIR bytecode and witness data in parallel using `parallel_for` - Parallelizes `PrivateExecutionStepRaw::load_and_decompress()` — decompresses gzip data for each step in parallel Closes #1395 [ClaudeBox log](http://ci.aztec-labs.com/6987e2365fae49247e056cb7a95c3578)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PrivateExecutionSteps::parse()— deserializes each step's ACIR bytecode and witness data in parallel usingparallel_forPrivateExecutionStepRaw::load_and_decompress()— decompresses gzip data for each step in parallelCloses #1395
ClaudeBox log