You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking at the performance of font rendering, and investigating the possible use of the FreeType cache code - something caught my eye in ImagingFill2 - fill_mask_L - A loop-invariant is calculated in each loop.
While looking at the performance of font rendering, and investigating the possible use of the FreeType cache code - something caught my eye in ImagingFill2 - fill_mask_L - A loop-invariant is calculated in each loop.
https://github.com/python-pillow/Pillow/blob/main/src/libImaging/Paste.c#L441
When pasting into an RGBA buffer, this code appears to call strcmp() 5 times for each pixel.
Looking at callgrind I get:
(you don't see fill_mask_L in this output as is is
inline
)Something like this might be more efficient:
The text was updated successfully, but these errors were encountered: