cap pylint CPUs in qt/

After 4 cores, improvements are tiny, and soon start going backwards,
presumably due to the overhead of importing PyQt into each worker.
This commit is contained in:
Damien Elmes 2021-01-07 15:50:28 +10:00
parent 4b11854a2e
commit ac923b5232

View file

@ -2,6 +2,7 @@ import os
import subprocess
import sys
import PyQt5
import multiprocessing
from pylint.lint import Run
@ -15,7 +16,7 @@ if __name__ == "__main__":
"--rcfile",
ini,
"-j",
"0",
str(min(4, multiprocessing.cpu_count())),
"-v",
]
)