Parallelize structured compiler diagnostic collection#3129
Closed
Arcticae wants to merge 1 commit into
Closed
Conversation
Member
Author
|
This change is part of the following stack: Change managed by git-spice. |
This was referenced May 19, 2026
428836e to
4cc3d88
Compare
630e9c1 to
d79f475
Compare
4cc3d88 to
cb4f82b
Compare
d79f475 to
3d4ac15
Compare
maciektr
requested changes
May 19, 2026
Comment on lines
+55
to
+61
| let reports = self | ||
| .crates | ||
| .par_iter() | ||
| .map_with(db.dyn_clone(), |db, crate_input| { | ||
| self.collect_crate_diagnostics(db.as_ref(), crate_input) | ||
| }) | ||
| .collect::<Vec<_>>(); |
Contributor
There was a problem hiding this comment.
Why should we do this instead of the warmup style that Cairo does?
https://github.com/starkware-libs/cairo/blob/adf04c14281084d7ef7d383c8418888a5d49d992/crates/cairo-lang-compiler/src/lib.rs#L209
Contributor
There was a problem hiding this comment.
Also, would it make sense to paralelize on module level like Cairo does?
cb4f82b to
f1b1f10
Compare
2e430bc to
3f0826a
Compare
f1b1f10 to
f8bceaa
Compare
3f0826a to
286ed3d
Compare
# Conflicts: # scarb/src/compiler/structured_diagnostics/core.rs # scarb/src/compiler/structured_diagnostics/mod.rs
f8bceaa to
74f4fac
Compare
286ed3d to
d05a827
Compare
wawel37
reviewed
May 22, 2026
| message, | ||
| MachineDiagnosticSeverity::Error, | ||
| file, | ||
| MachineDiagnosticSpan { start: 0, end: 0 }, |
Member
There was a problem hiding this comment.
Same as 2 prs before, should be a default
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.
No description provided.