Repository navigation
pyiceberg-core: create smaller artifacts - #1841
Merged
Merged
Conversation
Contributor
Author
Contributor
Author
|
ok we were also hitting the 10GB project limit. This worked after i removed old releases |
liurenjie1024
approved these changes
Nov 12, 2025
liurenjie1024
left a comment
Contributor
There was a problem hiding this comment.
Thanks @kevinjqliu for this fix!
liurenjie1024
pushed a commit
that referenced
this pull request
Nov 12, 2025
## Which issue does this PR close? - Closes #1839 ## What changes are included in this PR? use `lto = "thin", opt-level = "z"` Tested building the wheel locally on mac. And this is the winning combination. Change | Wheel Size | Build Time | Notes ------------------------|------------|------------|------------------ fat LTO, opt-level=3 (default) | 21 MB | ~3 min | Original fat LTO, opt-level=z | 12 MB | ~3 min | 43% smaller thin LTO, opt-level=z | 12 MB | ~1.5 min | Same size, 2x faster build! no LTO, opt-level=z | 13 MB | ~1 min | Slightly bigger ### Size Reduction [This branch](https://github.com/apache/iceberg-rust/actions/runs/19285828822) vs [main branch w/ #1841](https://github.com/apache/iceberg-rust/actions/runs/19280546898/attempts/1) | Name | Old Size | New Size | % Decrease | |-----------------------------------------------|----------|----------|------------| | wheels-macos-latest-universal2-apple-darwin | 44.4 MB | 23.5 MB | 47.07% | | wheels-ubuntu-latest-aarch64 | 66.1 MB | 40.9 MB | 38.12% | | wheels-ubuntu-latest-armv7l | 70.5 MB | 33.1 MB | 53.05% | | wheels-ubuntu-latest-x86_64 | 23.8 MB| 13 MB | 45.38% | | wheels-windows-latest | 25.9 MB | 12.7 MB | 45.38% | | wheels-sdist | 575 KB | 574 KB ## Are these changes tested? Yes https://github.com/apache/iceberg-rust/actions/runs/19285828822
9 of 22 tasks
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.
Which issue does this PR close?
What changes are included in this PR?
Add release profile configs to create smaller python artifacts for pyiceberg-core
Inspired by opendal
Size Reduction
This branch vs main branch
Are these changes tested?
Yes manually built and verified
https://github.com/apache/iceberg-rust/actions/runs/19280546898