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
flake8-isort 100 times slower than isort #101
Comments
interesting... did you run a profiler on it to check why it is so slow? 🤔 I'm really curious on what's the slow path here... |
Nope |
I profiled this briefly using the first 10 files from the attached test program: > python -m cProfile -o flake8.prof -m flake8 -- --select I001,I002,I003,I004,I005 files/file00*.py And the following profile output would seem to indicate that isort itself, and flake8-isort are still very fast. But flake8 is still parsing every file to run all the normal flake8 checks. The time spent under
And the time spent under
But a full 61s is under
And that time seems to break down mostly into,
and
More profile output:
|
@dreid So IOW, it sounds like |
Meanwhile, if you want something fast, you can use |
I'd like to use flake8-isort in my project, but I can't because it is extremely slow.
Here is a script to reproduce the issue.
I see following numbers on my machine (the same is on github actions).
Is it possible to do something with it?
Versions:
The text was updated successfully, but these errors were encountered: