diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-11-02 16:04:12 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-11-02 16:04:12 +0100 |
commit | ea627ab6d9b47c53e6b1e34837e928c9d599db51 (patch) | |
tree | 40f706c314cbe62b7858848915a43bbe200342ef /lib/utils.py | |
parent | 69b4f98dc1de99971b3f5fb56fb07c04fa229e9c (diff) |
Do not pass the entirety of by_nane/by_param to subprocesses
This should speed up analysis quite a bit and also reduce memory usage
significantly
Diffstat (limited to 'lib/utils.py')
-rw-r--r-- | lib/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/utils.py b/lib/utils.py index 31fedcf..2ed3d6e 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -152,9 +152,7 @@ def param_slice_eq(a, b, index): ('foo', [1, 4]), ('foo', [2, 4]), 1 -> False """ - if (*a[1][:index], *a[1][index + 1 :]) == (*b[1][:index], *b[1][index + 1 :]) and a[ - 0 - ] == b[0]: + if (*a[:index], *a[index + 1 :]) == (*b[:index], *b[index + 1 :]): return True return False |