diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2022-08-30 17:15:51 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2022-08-30 17:15:53 +0700 |
commit | b3ea021b323a4ca7b5a64ba5e56f5e17a184efba (patch) | |
tree | b9b56c958e5a859535f54e1fa973629f0b0aa6c7 /contrib | |
parent | 12175d358850cfbfe40c060292d8273cabc23cbc (diff) |
contrib/jenkins.sh: speed up pylint by running multiple processes
Use multiple processes to speed up pylint. Specifying -j0 will
auto-detect the number of processors available to use.
On AMD Ryzen 7 3700X this significantly reduces the exec time:
$ time python -m pylint -j1 ... pySim *.py
real 0m12.409s
user 0m12.149s
sys 0m0.136s
$ time python -m pylint -j0 ... pySim *.py
real 0m5.541s
user 0m58.496s
sys 0m1.213s
Change-Id: I76d1696c27ddcab358526f807c4a0a7f0d4c85d4
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/jenkins.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index bdf1311..f5cf8a2 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -37,7 +37,7 @@ python -m unittest discover -v -s tests/ # pySim/utils.py:276: E0401: Unable to import 'Crypto.Cipher' (import-error) # pySim/utils.py:277: E0401: Unable to import 'Crypto.Util.strxor' (import-error) pip install pylint==2.14.5 # FIXME: 2.15 is crashing, see OS#5668 -python -m pylint --errors-only \ +python -m pylint -j0 --errors-only \ --disable E1102 \ --disable E0401 \ --enable W0301 \ |