Skip to content

Optimize runtime of test-artifacts build script#13089

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:faster-artifacts
Apr 14, 2026
Merged

Optimize runtime of test-artifacts build script#13089
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:faster-artifacts

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

  • Convert core wasms to components in parallel
  • Skip the core wasm to component part if the artifacts are up-to-date (based on mtime)
  • Build the C/C++ programs in parallel.

The goal here is to pick some low-hanging fruit to prevent this from being such a bottleneck in local development, but there's more that can be done if necessary (e.g. reading the dep files and calculating that all manually). Right now for example the longer steps are invoking Cargo which does nothing and invoking the C/C++ compilers unconditionally, but solving that makes this more of a "build a build system" script and I feel like we haven't quite crossed that threshold yet.

* Convert core wasms to components in parallel
* Skip the core wasm to component part if the artifacts are up-to-date
  (based on mtime)
* Build the C/C++ programs in parallel.

The goal here is to pick some low-hanging fruit to prevent this from
being such a bottleneck in local development, but there's more that can
be done if necessary (e.g. reading the dep files and calculating that
all manually). Right now for example the longer steps are invoking Cargo
which does nothing and invoking the C/C++ compilers unconditionally, but
solving that makes this more of a "build a build system" script and I
feel like we haven't quite crossed that threshold yet.
@alexcrichton alexcrichton requested review from a team as code owners April 14, 2026 14:38
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team April 14, 2026 14:38
@alexcrichton alexcrichton enabled auto-merge April 14, 2026 14:50
@alexcrichton alexcrichton added this pull request to the merge queue Apr 14, 2026
Merged via the queue into bytecodealliance:main with commit 09cb178 Apr 14, 2026
48 checks passed
@alexcrichton alexcrichton deleted the faster-artifacts branch April 14, 2026 15:15
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.

2 participants