Add option to force fd to use all available threads when running
This commit is contained in:
parent
6ebf009321
commit
ccb4518e2c
@ -7,6 +7,7 @@
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
from multiprocessing import cpu_count
|
||||||
from sys import platform
|
from sys import platform
|
||||||
|
|
||||||
# ========== Constants ==========
|
# ========== Constants ==========
|
||||||
@ -21,6 +22,8 @@ DEFAULT_FIND_OPTS = [
|
|||||||
"f",
|
"f",
|
||||||
"--type",
|
"--type",
|
||||||
"l",
|
"l",
|
||||||
|
"--threads",
|
||||||
|
str(cpu_count()),
|
||||||
]
|
]
|
||||||
EXTRA_FIND_OPTS = {"no_ignore": "--no-ignore", "no_ignore_vcs": "--no-ignore-vcs"}
|
EXTRA_FIND_OPTS = {"no_ignore": "--no-ignore", "no_ignore_vcs": "--no-ignore-vcs"}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user