Skip to content

Speed up Image.offset#9753

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

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

Conversation

@akx

@akx akx commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

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

@codspeed-hq

codspeed-hq Bot commented Jul 1, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 42.2%

⚠️ 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
✅ 341 untouched benchmarks
⏩ 2 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
test_offset[1024x1024-L] 8.9 ms 4.8 ms +84.75%
test_offset[1024x1024-LA] 10 ms 7.7 ms +30.33%
test_offset[1024x1024-RGBA] 10 ms 7.7 ms +30.33%
test_offset[1024x1024-RGB] 10 ms 7.7 ms +30.31%

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 (b9377bc) with main (bca8bc7)

Open in CodSpeed

Footnotes

  1. 2 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant