FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Speed up `Image.offset` by akx · Pull Request #9753 · python-pillow/Pillow · GitHub

Speed up Image.offset - #9753

Open
akx wants to merge 1 commit into
python-pillow:mainfrom
akx:faster-offset
Open

Speed up Image.offset#9753
akx wants to merge 1 commit into
python-pillow:mainfrom
akx:faster-offset

Conversation

akx commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

As #9649, #9675, #9736, #9737, #9738, #9739, #9740, #9743 (same techniques).

codspeed-hq Bot commented Jul 1, 2026
edited
Loading

Copy link
Copy Markdown

Merging this PR will improve performance by 42.24%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 4 improved benchmarks
✅ 551 untouched benchmarks
⏩ 335 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
test_offset[1237x811-L] 8.5 ms 4.6 ms +84.8%
test_offset[1237x811-LA] 9.6 ms 7.3 ms +30.37%
test_offset[1237x811-RGB] 9.6 ms 7.3 ms +30.36%
test_offset[1237x811-RGBA] 9.6 ms 7.3 ms +30.34%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing akx:faster-offset (6c4cec3) with main (c8c74c8)

Footnotes

  1. 335 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

akx marked this pull request as ready for review July 1, 2026 17:51
Comment thread src/libImaging/Offset.c Outdated
akx force-pushed the faster-offset branch from 4cb80ba to 53568b1 Compare July 4, 2026 10:30
akx force-pushed the faster-offset branch from 53568b1 to 20ecf42 Compare July 20, 2026 07:42
akx mentioned this pull request Jul 29, 2026

hugovk commented Aug 9, 2026

Copy link
Copy Markdown
Member

Rebased following benchmark image update: #9831.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL