Skip to content

Optimize PyBytes::as_bytes() in the unlimited API - #6377

Merged
bschoenmaeckers merged 1 commit into
PyO3:mainfrom
exg:optimize-pybytes-as-bytes-in-unlimited-api
Sep 1, 2026
Merged

Optimize PyBytes::as_bytes() in the unlimited API#6377
bschoenmaeckers merged 1 commit into
PyO3:mainfrom
exg:optimize-pybytes-as-bytes-in-unlimited-api

Conversation

@exg

@exg exg commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@exg
exg force-pushed the optimize-pybytes-as-bytes-in-unlimited-api branch from 5755733 to f25785e Compare August 31, 2026 16:40
@codspeed-hq

codspeed-hq Bot commented Aug 31, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 10.49%

⚠️ 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

❌ 2 regressed benchmarks
✅ 139 untouched benchmarks
⏩ 6 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation extract_u128_small 1.8 µs 2.1 µs -10.62%
Simulation extract_u128_zero 1.9 µs 2.1 µs -10.35%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing exg:optimize-pybytes-as-bytes-in-unlimited-api (f25785e) with main (d44dcca)

Open in CodSpeed

Footnotes

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

@bschoenmaeckers
bschoenmaeckers added this pull request to the merge queue Sep 1, 2026
Merged via the queue into PyO3:main with commit d9a2288 Sep 1, 2026
51 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants