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
imghdr test order makes it slow #47674
Comments
The order of tests in imghdr makes it slow in common cases. Even without Nearly all digital cameras produce jpegs and handling such images is one Changing the test order should be easy and have big effect in common use |
Do you have any benchmarks to prove this with? IMO, the difference would |
Naturally it requires a big amount of files. Getting big amount of jpegs I'll attach two profiling runs showing some difference when test_jpeg |
Ok. Would you like to propose an alternate order? |
jpeg and then the rest |
Done in r65713. |
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: