Skip to content
Commit 351e2b5d authored by Tails developers's avatar Tails developers
Browse files

Seriously optimize check_po.sh: avoid forking a python3 per PO file.

We currently have more than 800 PO files. The previous code ran i18nspector
(and thus forked a python3 interpreter) for each of those.

Let's now:

  * run as many i18nspector in parallel as the system has CPU cores
  * pass as much as 64 files to i18nspector at a time (on a system with 4 cores,
    we should ideally pass a bit more argumants at a time; on a system with
    8 cores, we're close to the optimal theoretical setting; on a system with 16
    cores, 64 at a time is a bit too much)

On my system, total runtime has dropped from 73s to 3.8s.
parent c53d0d45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment