Skip to content

Parallelize structured compiler diagnostic collection#3129

Closed
Arcticae wants to merge 1 commit into
arcticae/compile-structured-json-diagnosticsfrom
arcticae/compile-parallel-machine-diagnostics
Closed

Parallelize structured compiler diagnostic collection#3129
Arcticae wants to merge 1 commit into
arcticae/compile-structured-json-diagnosticsfrom
arcticae/compile-parallel-machine-diagnostics

Conversation

@Arcticae
Copy link
Copy Markdown
Member

No description provided.

@Arcticae Arcticae requested a review from a team as a code owner May 19, 2026 10:13
@Arcticae Arcticae requested review from maciektr and wawel37 and removed request for a team May 19, 2026 10:13
@Arcticae
Copy link
Copy Markdown
Member Author

Arcticae commented May 19, 2026

@Arcticae Arcticae force-pushed the arcticae/compile-structured-json-diagnostics branch from 428836e to 4cc3d88 Compare May 19, 2026 10:22
@Arcticae Arcticae force-pushed the arcticae/compile-parallel-machine-diagnostics branch from 630e9c1 to d79f475 Compare May 19, 2026 10:22
@Arcticae Arcticae force-pushed the arcticae/compile-structured-json-diagnostics branch from 4cc3d88 to cb4f82b Compare May 19, 2026 10:43
@Arcticae Arcticae force-pushed the arcticae/compile-parallel-machine-diagnostics branch from d79f475 to 3d4ac15 Compare May 19, 2026 10:43
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<_>>();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, would it make sense to paralelize on module level like Cairo does?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Arcticae Arcticae force-pushed the arcticae/compile-structured-json-diagnostics branch from cb4f82b to f1b1f10 Compare May 19, 2026 11:05
@Arcticae Arcticae force-pushed the arcticae/compile-parallel-machine-diagnostics branch 6 times, most recently from 2e430bc to 3f0826a Compare May 19, 2026 12:07
@Arcticae Arcticae force-pushed the arcticae/compile-structured-json-diagnostics branch from f1b1f10 to f8bceaa Compare May 19, 2026 12:11
@Arcticae Arcticae force-pushed the arcticae/compile-parallel-machine-diagnostics branch from 3f0826a to 286ed3d Compare May 19, 2026 12:11
# Conflicts:
#	scarb/src/compiler/structured_diagnostics/core.rs
#	scarb/src/compiler/structured_diagnostics/mod.rs
@Arcticae Arcticae force-pushed the arcticae/compile-structured-json-diagnostics branch from f8bceaa to 74f4fac Compare May 19, 2026 12:44
@Arcticae Arcticae force-pushed the arcticae/compile-parallel-machine-diagnostics branch from 286ed3d to d05a827 Compare May 19, 2026 12:44
message,
MachineDiagnosticSeverity::Error,
file,
MachineDiagnosticSpan { start: 0, end: 0 },
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as 2 prs before, should be a default

@Arcticae Arcticae closed this May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants