mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -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 subprocess
|
||||||
import sys
|
import sys
|
||||||
import PyQt5
|
import PyQt5
|
||||||
|
import multiprocessing
|
||||||
|
|
||||||
from pylint.lint import Run
|
from pylint.lint import Run
|
||||||
|
|
||||||
|
@ -15,7 +16,7 @@ if __name__ == "__main__":
|
||||||
"--rcfile",
|
"--rcfile",
|
||||||
ini,
|
ini,
|
||||||
"-j",
|
"-j",
|
||||||
"0",
|
str(min(4, multiprocessing.cpu_count())),
|
||||||
"-v",
|
"-v",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue