From 960b8bdcb8fa5f8b416c07fb5d9a85a3e4d85ddb Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 27 Sep 2026 22:12:35 +1000 Subject: [PATCH 1/2] Update multibuild to use -O2 optimisation --- wheels/multibuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wheels/multibuild b/wheels/multibuild index 4546f4d4820..f66d563dc6d 160000 --- a/wheels/multibuild +++ b/wheels/multibuild @@ -1 +1 @@ -Subproject commit 4546f4d4820ffd0104b872c3b6187260b3e64edc +Subproject commit f66d563dc6d2c8db1fa1f77cfadd583a93ecf20c From cc11eae51e58c588c39fa4174a3b27e0d21cde63 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 28 Sep 2026 00:33:40 +1000 Subject: [PATCH 2/2] Add release notes --- docs/releasenotes/13.0.0.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/releasenotes/13.0.0.rst b/docs/releasenotes/13.0.0.rst index 17aa74152b7..5ec4c3d1485 100644 --- a/docs/releasenotes/13.0.0.rst +++ b/docs/releasenotes/13.0.0.rst @@ -172,6 +172,21 @@ installed on the system with the expected name (e.g. ``libharfbuzz.so.0``). All wheels are now linked against the HarfBuzz that Pillow ships, which may slightly change how text is rendered in scripts that rely on the auto-hinter. +Faster JPEG 2000, TIFF, FreeType and LittleCMS in macOS and Linux wheels +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Several of the libraries bundled in the macOS and Linux wheels were built without +compiler optimisation. The Windows wheels were not affected. + +These libraries are now compiled with ``-O2``. Compared to Pillow 12.3.0, the wheels +- decode JPEG 2000 images 2 to 3 times faster and encode them about twice as fast, +- LZW-compressed TIFF images are read and written about twice as fast, +- text rendering with :py:mod:`~PIL.ImageFont` is up to 3 times faster, and +- :py:mod:`~PIL.ImageCms` transforms are up to 3 times faster. + +PNG, JPEG, WebP and AVIF are unaffected, as those libraries were already built with +optimisation. + Python 3.15 ^^^^^^^^^^^