Skip to content

Speed up some conversions#9807

Open
akx wants to merge 5 commits into
python-pillow:mainfrom
akx:faster-convert-x
Open

Speed up some conversions#9807
akx wants to merge 5 commits into
python-pillow:mainfrom
akx:faster-convert-x

Conversation

@akx

@akx akx commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Local results for the touched conversions:

------------------------- benchmark 'convert': 28 tests, 2 sources ------------------------
Name (time in us)                              0001_7d5d2c3 Min  0002_643f45b Min      ΔMin
-------------------------------------------------------------------------------------------
test_convert[1024x1024-I-L]                             96.9160           55.9581    -42.3%
test_convert[1024x1024-P-RGB]                          846.0840          478.4579    -43.5%
test_convert[1024x1024-PA-RGB]                         854.7499          497.6669    -41.8%
test_convert[1024x1024-PA-RGBA]                        994.4162          520.9171    -47.6%
test_convert[1024x1024-P-RGBA]                       1,064.0421          407.7090    -61.7%
-------------------------------------------------------------------------------------------

Experiments to speed up the other conversions didn't really yield fruit.

@akx
akx marked this pull request as ready for review July 21, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants