New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance regression in long division in 2.6 #48378
Comments
On my laptop (Windows XP, 32-bit), long division is about 15% slower in I noticed this when comparing the unit tests for mpmath From some quick benchmarking, addition and multiplication are not the There could be other factors involved, but from what I've found out so Division in Python 2.4 is also the same speed as 2.5. |
The source code is unchanged except the format functions (binary and
I'm using -O0 to help gdb debug, but the default gcc optimization Did you recompiled your own Python or did you use the binary at |
I figured as much. I'm using the binaries from python.org (see the .txt The question is why the compilation changes for 2.6 slowed down division |
It may be that one of the builds was done with profile-guided |
The 2.5 build was done by VS 2003, with no PGO, and the 2.6 build was To understand why it behaves the way it behaves, you probably need to I propose to close this as "won't fix"; I'm not interested in 150ms |
I agree.
I'm ok to close the ticket, but I'm also interrested to optimize |
Sure. (I care about differences like this, because they have a tendency to add |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: