Skip to content

Commit d4c6f48

Browse files
authored
pyiceberg-core: create smaller artifacts (#1841)
## Which issue does this PR close? - Closes #1839 ## What changes are included in this PR? Add release profile configs to create smaller python artifacts for pyiceberg-core Inspired by [opendal](https://github.com/apache/opendal/blob/e03f40a3f33856506c5f04c149f52bcc48253872/bindings/python/Cargo.toml#L219-L224) ### Size Reduction [This branch](https://github.com/apache/iceberg-rust/actions/runs/19280546898/attempts/1) vs [main branch](https://github.com/apache/iceberg-rust/actions/runs/19274277069) | Name | Old Size | New Size | % Decrease | |-----------------------------------------------|----------|----------|------------| | wheels-macos-latest-universal2-apple-darwin | 63.2 MB | 44.4 MB | 29.75% | | wheels-ubuntu-latest-aarch64 | 101 MB | 66.1 MB | 34.55% | | wheels-ubuntu-latest-armv7l | 104 MB | 70.5 MB | 32.21% | | wheels-ubuntu-latest-x86_64 | 34.8 MB | 23.8 MB | 31.61% | | wheels-windows-latest | 30.3 MB | 25.9 MB | 14.52% | | wheels-sdist | 574 KB | 575 KB ## Are these changes tested? <!-- Specify what test covers (unit test, integration test, etc.). If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? --> Yes manually built and verified https://github.com/apache/iceberg-rust/actions/runs/19280546898
1 parent 5c4a783 commit d4c6f48

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bindings/python/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ pyo3 = { version = "0.25", features = ["extension-module", "abi3-py39"] }
3737
iceberg-datafusion = { path = "../../crates/integrations/datafusion" }
3838
datafusion-ffi = { version = "50" }
3939
tokio = { version = "1.46.1", default-features = false }
40+
41+
[profile.release]
42+
codegen-units = 1
43+
debug = false
44+
lto = "fat"
45+
strip = true

0 commit comments

Comments
 (0)