Skip to content

Speed up Image.fill(), Image.linear_gradient() and Image.radial_gradient().#9737

Merged
hugovk merged 4 commits into
python-pillow:mainfrom
akx:faster-fill
Jul 1, 2026
Merged

Speed up Image.fill(), Image.linear_gradient() and Image.radial_gradient().#9737
hugovk merged 4 commits into
python-pillow:mainfrom
akx:faster-fill

De-triplicate `Image.*_gradient()`'s loops with a macro

f7f350a
Select commit
Loading
Failed to load commit list.
Mergify / Summary succeeded Jul 1, 2026 in 1s

1 potential rule

⚠️ The pull request has been merged by @hugovk

Rule: Automatic merge (merge)

  • -closed [📌 merge requirement]
  • label=automerge
  • #approved-reviews-by>=1
  • -conflict [📌 merge requirement]
  • -draft [📌 merge requirement]
  • status-success=Docker Test Successful
  • status-success=Lint
  • status-success=MinGW
  • status-success=Test Successful
  • status-success=Windows Test Successful
  • any of: [📌 merge -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed

💖  Mergify is proud to provide this service for free to open source projects.

🚀  You can help us by becoming a sponsor!


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com