Repository navigation
Reduce compiler wheels by 35-48% - #135
Merged
Merged
Conversation
jtuyls
force-pushed
the
users/jtuyls/reduce-compiler-wheel-size
branch
from
October 19, 2026 09:05
f892730 to
1beb936
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Launchers regress direct Windows Clang frontend calls and Linux alias invocation through external symlinks.
2 open issues
What changed in this PR
Reduces compiler wheel size through stronger compression and payload deduplication while aiming to preserve existing tool interfaces.
Changes:
- Uses DEFLATE level 9 and replaces duplicate tool binaries with launchers.
- Removes redundant Linux LLVM payload and strips unneeded symbols.
- Expands alias verification and documents packaging behavior.
| File | Description |
|---|---|
| tests/wheels/test_fastflow_sdk_compiler_wheels.py | Tests alias forwarding, validation, and stripping. |
| docs/wheel-releases.md | Documents size-reduction and verification behavior. |
| build_tools/native/compiler_tool_alias_launcher.cpp | Adds native Windows alias forwarding. |
| build_tools/fastflow_sdk_compiler_wheels.py | Implements compression, payload reduction, and alias audits. |
Review effort: Balanced
Reduce the packaged compiler payload without changing its public tool interfaces. - Compress compiler wheels with DEFLATE level 9. - Replace byte-identical Windows Clang, LLD, and readelf multicall copies with deterministic native launchers that preserve each driver flavor. - Replace the large Linux LLD and readelf copies with flavor-preserving shell launchers while retaining the inexpensive Clang aliases. - Remove the byte-identical Linux libLLVM-21.so copy after validation and strip unneeded ELF symbols. - Exercise every forwarded mode in the existing wheel verification jobs and retain native dependency, installed-wheel, E2E, and JIT checks. Measured compiler-core wheel sizes: - Windows: 632,790,558 -> 330,061,997 bytes (47.8% smaller). - Linux: 469,932,885 -> 303,792,202 bytes (35.4% smaller).
jtuyls
force-pushed
the
users/jtuyls/reduce-compiler-wheel-size
branch
from
October 19, 2026 09:19
1beb936 to
a1a018c
Compare
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.

Reduce the packaged compiler payload without changing its public tool interfaces.
Measured compiler-core wheel sizes: