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.
Loading
Please register or sign in to comment