Skip to content

internal: try use new PyLong API for num-bigint feature#6144

Open
chirizxc wants to merge 10 commits into
PyO3:mainfrom
chirizxc:PyLongForBigInt
Open

internal: try use new PyLong API for num-bigint feature#6144
chirizxc wants to merge 10 commits into
PyO3:mainfrom
chirizxc:PyLongForBigInt

Conversation

@chirizxc

@chirizxc chirizxc commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Related: #6040

See codspeed comment for benchmark improvements.

@codspeed-hq

codspeed-hq Bot commented Jun 20, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 36.99%

⚠️ 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
✅ 122 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
extract_bigint_huge_negative 12.9 µs 8.5 µs +52.56%
extract_bigint_small 2.6 µs 1.8 µs +44.86%
extract_bigint_huge_positive 11.7 µs 8.5 µs +38.01%
extract_bigint_big_negative 3.9 µs 3.4 µs +15.47%

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 chirizxc:PyLongForBigInt (05b34ba) with main (771558e)

Open in CodSpeed

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.

1 participant