[Command] enables parallel command execution by default

This commit is contained in:
Carter Li
2025-11-11 09:28:44 +08:00
parent 298c0431c3
commit cb0a88df22
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -2107,9 +2107,9 @@
"default": false
},
"parallel": {
"description": "Set if the command should be executed in parallel with other commands\nMight improve performance when using multiple commands, but may cause issues with some commands",
"description": "Set if the command should be executed in parallel with other commands\nImprove performance when using multiple commands, but may cause issues with some commands",
"type": "boolean",
"default": false
"default": true
},
"key": {
"$ref": "#/$defs/key"
+2 -2
View File
@@ -45,8 +45,8 @@ const char* ffDetectCommand(FFCommandOptions* options, FFstrbuf* result)
FFCommandResultBundle bundle = {};
if (!options->parallel)
bundle.error = spawnProcess(options, &bundle.handle);
else
ffListShift(&commandQueue, &bundle);
else if (!ffListShift(&commandQueue, &bundle))
return "[BUG] command queue is empty";
if (bundle.error)
return bundle.error;
+1 -1
View File
@@ -131,7 +131,7 @@ void ffInitCommandOptions(FFCommandOptions* options)
);
ffStrbufInit(&options->text);
options->useStdErr = false;
options->parallel = false;
options->parallel = true;
}
void ffDestroyCommandOptions(FFCommandOptions* options)