Closed correctmost closed 2 months ago
This provides a small speed-up on large codebases (~90ms).
ncalls tottime percall cumtime percall filename:lineno(function) 1609756 0.432 0.000 0.432 0.000 {method 'rstrip' of 'str' objects}
pycodestyle .
ncalls tottime percall cumtime percall filename:lineno(function) 1137564 0.311 0.000 0.311 0.000 {method 'rstrip' of 'str' objects}
I profiled pycodestyle with the yt-dlp codebase because it is similar in composition to a private codebase I have.
git clone https://github.com/yt-dlp/yt-dlp.git cd yt-dlp git checkout ef36d517f9b05785d61abca7691d9ab7d63cc75c # Callgraph command python -m cProfile -o stats $(which pycodestyle) # Benchmarking command hyperfine --ignore-failure --warmup 2 --runs 10 --export-markdown=baseline.md 'pycodestyle .'
setup.cfg
[pycodestyle] ignore = W504 max-line-length = 100
This provides a small speed-up on large codebases (~90ms).
Stats
Before
pycodestyle .
After
pycodestyle .
Set-up
I profiled pycodestyle with the yt-dlp codebase because it is similar in composition to a private codebase I have.
setup.cfg