Skip to content

Conversation

@skirpichev
Copy link
Contributor

With same benchmark as in the issue:

Benchmark gmpy2.mpz gmp.mpz gmp.mpz-v1
collatz0(97) 94.9 us 90.3 us: 1.05x faster 91.3 us: 1.04x faster
collatz0(871) 142 us 134 us: 1.06x faster 135 us: 1.05x faster
collatz1(97) 95.5 us 158 us: 1.65x slower 156 us: 1.64x slower
collatz1(871) 142 us 238 us: 1.67x slower 231 us: 1.63x slower
Geometric mean (ref) 1.26x slower 1.25x slower

Closes #231

@skirpichev skirpichev force-pushed the master branch 8 times, most recently from 20d97e9 to 28aaa42 Compare October 16, 2025 08:47
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.

Optimize mixed-mode operations with small int's

1 participant