Closed atombrella closed 2 years ago
I found this repository because I followed your tutorial on Medium on how to write a flake8
plugin. Thanks a bunch for this! :)
Uh, interesting! I'll have a look and try to fix it this week.
Do you mind sharing the project where this time actually matters?
Uh, I got your point wrong the first time : you're not worried about the runtime of sim105, but if the effect of the advocated change! Now I've got you! I'll document it tomorrow 👍
Uh, interesting! I'll have a look and try to fix it this week.
Do you mind sharing the project where this time actually matters?
https://github.com/django/django/pull/9038 It's slow because of the way Python makes function calls.
@atombrella What do you think about this? https://github.com/MartinThoma/flake8-simplify/pull/93
Desired change
Explanation
By conforming to this, the code will perform worse. Please check with
timeit
.