From 2b6fe00e3db2923eb3cec012e56bc754b10bcbdc Mon Sep 17 00:00:00 2001 From: Xavier Claessens <xavier.claessens@collabora.com> Date: Mon, 14 Jun 2021 14:58:45 -0400 Subject: msubprojects: Run action on all subprojects in parallel This moves all the code into a class and call its run() method in a thread. The class queues all logs to print them at the end to avoid mixing output of multiple actions. --- docs/markdown/snippets/subprojects_command_parallel.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/markdown/snippets/subprojects_command_parallel.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/subprojects_command_parallel.md b/docs/markdown/snippets/subprojects_command_parallel.md new file mode 100644 index 0000000..4d992e7 --- /dev/null +++ b/docs/markdown/snippets/subprojects_command_parallel.md @@ -0,0 +1,7 @@ +## Parallelized `meson subprojects` commands + +All `meson subprojects` commands are now run on each subproject in parallel by +default. The number of processes can be controlled with `--num-processes` +argument. + +This speeds up considerably IO-bound operations such as downloads and git fetch. -- cgit v1.1