You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2026/10/14 22:07:13 UTC
[PR] fix(python): reduce sedonadb wheel size [sedona-db]
paleolimbot opened a new pull request, #1446:
URL: https://github.com/apache/sedona-db/pull/1446
Builds sedonadb as one CPython 3.9+ ABI3 wheel per platform instead of one wheel per Python version. Enables full LTO, one codegen unit, and wheel symbol stripping. Python 3.9 ABI3 requires raster-loader buffers to be materialized once at the Python/Rust boundary because the buffer protocol joined the Limited API in Python 3.11. Verified with ABI3 Rust tests and a release-wheel import on Python 3.14.\n\nCloses #1437
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(python): reduce sedonadb wheel size [sedona-db]
Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on code in PR #1446:
URL: https://github.com/apache/sedona-db/pull/1446#discussion_r4298659500
##########
python/sedonadb-zarr/src/lib.rs:
##########
@@ -413,14 +319,15 @@ impl PyZarrRasterLoader {
let results = results.map_err(|e| PyRuntimeError::new_err(e.to_string()))?;
- // Convert results to Python objects (zero-copy for bytes via ZarrBuffer)
+ // The buffer protocol did not join Python's Limited API until 3.11.
+ // Materialize a built-in bytes object so this extension can use abi3
+ // while retaining Python 3.9 support. This performs one copy at the
+ // Rust/Python boundary.
Review Comment:
cc @james-willis, with apologies for the earlier comment that we needed to retain this zero copy at all costs. This saves us GB per release and a bunch of CI time so I think it's worth it (plus we're about to move this to our own non-python API shortly).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore(python): reduce sedonadb wheel size [sedona-db]
Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot merged PR #1446:
URL: https://github.com/apache/sedona-db/pull/1446
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(python): reduce sedonadb wheel size [sedona-db]
Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu commented on code in PR #1446:
URL: https://github.com/apache/sedona-db/pull/1446#discussion_r4301900403
##########
python/sedonadb-zarr/Cargo.toml:
##########
@@ -29,7 +29,6 @@ doc = false
[dependencies]
arrow-array = { workspace = true, features = ["ffi"] }
-arrow-buffer = { workspace = true }
Review Comment:
Could we refresh `Cargo.lock` too? On a clean checkout of this branch:
```sh
cargo metadata --offline --locked --format-version 1
```
fails with `cannot update the lock file ... because --locked was passed`. The lockfile still lists `arrow-buffer` under `sedonadb-zarr` after its removal here. This also breaks the GPU CI commands that use `--locked`. Running Cargo without `--locked` removes that stale entry.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(python): reduce sedonadb wheel size [sedona-db]
Posted by "james-willis (via GitHub)" <gi...@apache.org>.
james-willis commented on code in PR #1446:
URL: https://github.com/apache/sedona-db/pull/1446#discussion_r4299527241
##########
python/sedonadb-zarr/src/lib.rs:
##########
@@ -413,14 +319,15 @@ impl PyZarrRasterLoader {
let results = results.map_err(|e| PyRuntimeError::new_err(e.to_string()))?;
- // Convert results to Python objects (zero-copy for bytes via ZarrBuffer)
+ // The buffer protocol did not join Python's Limited API until 3.11.
+ // Materialize a built-in bytes object so this extension can use abi3
+ // while retaining Python 3.9 support. This performs one copy at the
+ // Rust/Python boundary.
Review Comment:
<img width="600" height="400" alt="image" src="https://github.com/user-attachments/assets/5cff548f-e4fe-4cce-a22d-400d6591c9b3" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org