mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Fix performance regression with per-file-ignores
With a large number of errors, filenames, and per-file-ignores the style guide selection would take a significant portion of execution time (python3 70% / python2 99.9%). Caching the styleguide lookup by filename eliminates this bottleneck.
This commit is contained in:
parent
ee7081c8ce
commit
c85b282b05
3 changed files with 8 additions and 9 deletions
2
setup.py
2
setup.py
|
|
@ -28,7 +28,7 @@ requires = [
|
|||
extras_require = {
|
||||
":python_version<'3.4'": ['enum34'],
|
||||
":python_version<'3.5'": ['typing'],
|
||||
":python_version<'3.2'": ['configparser'],
|
||||
":python_version<'3.2'": ['configparser', 'functools32'],
|
||||
}
|
||||
|
||||
if int(setuptools.__version__.split('.')[0]) < 18:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue