Spawning child-process when using multiprocessing is very slow #6967
Labels
Duplicate 🐫
Duplicate of an already existing issue
High effort 🏋
Difficult solution or problem to solve
multiprocessing
Bug description
See: #6965 (comment)
Possible solution in #6965 (comment)
I personally think that a refactor of PyLinter will be required, and we'd have to classify checkers to know if they can benefit from multiprocessing or not.
duplicate-code
orcyclic import
won't for example as they need information on the imports of a file. Some check are are file based likeunused-private-member
(the scope is a single class) orwhile-used
(it just has to check if a while node exists) and can benefit from multiprocessing if done at the right time.Configuration
We should use a full configuration for this with a lot to parse, as we're probably parsing the configuration in each forks and this would make it apparent.
Command used
Expected behavior
Run time decrease with more core (when there is more files to lint than cores available).
Pylint version
The text was updated successfully, but these errors were encountered: