mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
4b11854a2e
commit
ac923b5232
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue