Repository navigation
Support 16-bit images in Image.blend - #10551
Conversation
Merging this PR will degrade performance by 87.61%3 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
|
@radarhere Did you notice the performance numbers for this? 😕 EDIT: the culprit seems to be |
|
I don't have anything very inventive to say at this point. Because |
|
I wasn't asking for inventive, just... reasons, and whether you'd noticed the numbers. But applying that generally (and the test change that needed to come with it, I suppose) in a PR that is supposed to be about 16-bit support seemed odd. Sure, Pillow had been blending slightly wrong "forever", but now this behavior (accuracy) change for other modes is hidden in a seemingly unrelated PR. I originally found out about this because I was plotting Pillow performance (the benchmarks from current Speed index (lower better)
The uptick at the end caught my interest. (It's still computing intermediate revisions, hence the varied resolution.) Slowdowns
Anyhow: please see https://github.com/python-pillow/Pillow/compare/main...akx:Pillow:blend-minimal?expand=1 for a small patch to restore some performance with the same precise results – I can't open a PR of it myself for the usual reasons. And #10615 should fix |


Separating the
blendpart of #10549. Helps #7397I've also applied
roundfto Blend.c generally.