sentry-cli
sentry-cli copied to clipboard
Parallelize Bundle Building
Bundle building currently processes files sequentially when adding to SourceBundleWriter. The bottleneck is CPU-intensive operations like file type detection, debug ID extraction, and content parsing. Parallelize the preparation work while keeping the actual bundle writing sequential.
We need to ensure a deterministic order in the ZIP file. But, we can still do this with parallelism by compressing the files first, then inserting the precompressed files into the ZIP (the zip crate should support this use case)