From ae95c2b19b4d5fd8a8b2dba7738083a30df629e3 Mon Sep 17 00:00:00 2001 From: agilob Date: Mon, 5 Oct 2020 16:31:51 +0100 Subject: [PATCH] Generate docs on 4 threads (#7586) --- bin/utils/export_docs_generators.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/utils/export_docs_generators.sh b/bin/utils/export_docs_generators.sh index 57283b3ff59..a456f275f8f 100755 --- a/bin/utils/export_docs_generators.sh +++ b/bin/utils/export_docs_generators.sh @@ -10,7 +10,11 @@ if [[ "true" == "${SKIP_EXPORT_DOCS}" ]]; then exit 0 fi +N=4 +( for GENERATOR in $(java -jar ${executable} list --short --include all | sed -e 's/,/\'$'\n''/g') do - ./bin/utils/export_generator.sh ${GENERATOR} + ((i=i%N)); ((i++==0)) && wait + ./bin/utils/export_generator.sh ${GENERATOR} & done +) \ No newline at end of file