From ac923b5232321c856ca1f2f6051364ec2a0d5fc7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 7 Jan 2021 15:50:28 +1000 Subject: [PATCH] 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. --- qt/tests/run_pylint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/tests/run_pylint.py b/qt/tests/run_pylint.py index 75daa0a24..6c2ec81ec 100644 --- a/qt/tests/run_pylint.py +++ b/qt/tests/run_pylint.py @@ -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", ] )