Skip to content

Conversation

@tonybaloney
Copy link
Contributor

@tonybaloney tonybaloney commented Jan 29, 2025

This PR merges the two loops inside v_iadd. For exponents, this gives about a 10% speed improvement.

./python.exe -m timeit -n 100 -r 10 "2**1234567"
100 loops, best of 10: 5.01 msec per loop
# after
./python.exe -m timeit -n 100 -r 10 "2**1234567"
100 loops, best of 10: 4.53 msec per loop

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