Statically link zlib-ng in Linux wheels for 2.5x faster PNG write #10495
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10495"
general
weight: 0.35
radarhere
Fixes https://github.com/python-pillow/Pillow/issues/10469.
This means the Linux wheels will use zlib-ng from the wheel, not whatever happens to be on the machine, whether that's zlib or zlib-ng. Or nothing at all, as happened in #10469.
Here's benchmarks using the same script from https://github.com/python-pillow/Pillow/pull/8500.
Compared
pillow-13.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whlfrom PyPI, andpillow-13.1.0.dev0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whlfrom this fork.<details>
<summary>Script</summary>
</details>
<details>
<summary>Output</summary>
</details>
Time has same shape as #8500:
modest gain at level 0
growing to about 2 to 2.5x at default level 6
Interestingly, the zlib-ng times at level 9 are 2.79s (#8500, Windows x86_64) versus 2.80s (here, aarch64 in a Docker VM), almost identical on different machines!
<img width="616" height="378" alt="image" src="https://github.com/user-attachments/assets/7417ee4d-e0b1-487b-80f7-9c480b02598c" />
File sizes are identical to #8500.
<img width="617" height="386" alt="image" src="https://github.com/user-attachments/assets/c7a41c94-6a4d-448c-b950-0d72036d62d6" />