Skip to content
Snippets Groups Projects
Commit 3760636d authored by Emanuele Aina's avatar Emanuele Aina
Browse files

Generate PDFs in parallel on multi-core systems


Try to speed up the single-threaded PDF generation by starting a process
for each CPU core.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent faab6444
No related branches found
No related tags found
1 merge request!76Generate PDFs in parallel on multi-core systems
Pipeline #152885 passed
......@@ -27,7 +27,8 @@ test-html:
image: docker-registry.apertis.org/apertis/apertis-v2020-documentation-builder
stage: generate-pdf
script:
- find public -name "*.pdf-in" -exec scripts/create-pdf {} \;
- echo "Building PDFs on $(nproc) cores"
- find public -name "*.pdf-in" -print0 | xargs -0 -r -n1 -P "$(nproc)" scripts/create-pdf
needs:
- job: test-html
artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment