Repository navigation
Conversation
|
Compared the exact parent Built with Rust 1.98.1 on macOS arm64. The backend measurements use the
The minimal and To isolate compression from differences between binaries, a local benchmark exposes both compression modes through the same compiled function and alternates them against the same output path. Its wall-time reductions were 6.2% (95% CI 5.2–7.1%) for the minimal package, 7.9% (95% CI 6.2–10.1%) for The instrumented Deflate and Stored archives were byte-identical to the corresponding unmodified parent and PR archives for all three fixtures. Extracted file contents matched, regular wheels remained byte-identical, and The |
|
Promoted to #21918. |
Editable wheels currently use the normal Deflate writer even though the backend has an uncompressed writer for them. Route `build_editable` through that writer so the temporary wheel entries use Stored compression. Regular wheel compression and the installed file contents are unchanged. Local release benchmarks against the exact parent reduce time in `build_editable` by 7.8% (95% CI 5.8–9.7%) for a minimal package and 6.8% (95% CI 3.5–11.6%) for `built-by-uv`. A same-process comparison and CPU timings support the savings; forced `uv sync` reinstalls did not show a measurable end-to-end improvement. [Detailed benchmarks](astral-sh#1999 (comment)). Co-authored-by: zaniebot <[email protected]>
Editable wheels currently use the normal Deflate writer even though the backend has an uncompressed writer for them. Route
build_editablethrough that writer so the temporary wheel entries use Stored compression. Regular wheel compression and the installed file contents are unchanged.Local release benchmarks against the exact parent reduce time in
build_editableby 7.8% (95% CI 5.8–9.7%) for a minimal package and 6.8% (95% CI 3.5–11.6%) forbuilt-by-uv. A same-process comparison and CPU timings support the savings; forceduv syncreinstalls did not show a measurable end-to-end improvement. Detailed benchmarks.