Skip to content

feat(cli): compile input files in parallel#1854

Open
malsomesh9 wants to merge 1 commit intohyperledger-solang:mainfrom
malsomesh9:codex/fix-1382-parallel-compile
Open

feat(cli): compile input files in parallel#1854
malsomesh9 wants to merge 1 commit intohyperledger-solang:mainfrom
malsomesh9:codex/fix-1382-parallel-compile

Conversation

@malsomesh9
Copy link
Copy Markdown

Summary

Parallelize solang compile across top-level input files while preserving the existing sequential diagnostics and artifact emission flow.

Changes

  • add rayon as a runtime dependency for the CLI compile path
  • make FileResolver clonable so each worker can compile from its own resolver snapshot
  • process top-level input files in parallel and keep per-file resolvers paired with namespaces for diagnostics

Verification

  • cargo fmt --all
  • attempted cargo check --bin solang, but this machine does not have a system LLVM installation for llvm-sys

Fixes #1382

Signed-off-by: Somesh Mal <malsomesh9@gmail.com>
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.

Support parallel compilation of all input files

1 participant