]> Git Repo - buildroot-mgba.git/commit
support/scripts/fix-rpath: parallelize patching files
authorVictor Dumas <[email protected]>
Thu, 20 Oct 2022 11:55:12 +0000 (13:55 +0200)
committerThomas Petazzoni <[email protected]>
Sun, 6 Aug 2023 21:27:31 +0000 (23:27 +0200)
commit134900401f0831f893ddd4f358e499f548d66433
tree02fd30c0ded799665dc63610ebd5ad108a865897
parent552a054d45f516990e6470338c18ce9f792c59b3
support/scripts/fix-rpath: parallelize patching files

Using "xargs" instead of "while read" loop allows for the patching of
files to be parallelized. This significantly reduces the amount of
time it takes to fix all the paths.  On a larger RFS(~300MB) this
script was taking 5 minutes, it now only takes about 30s on a 12 core
machine.

Signed-off-by: Victor Dumas <[email protected]>
[Thomas: take into account the suggestion of Quentin Schulz to pass
PARALLEL_JOBS through the environment down to the fix-rpath script]
Signed-off-by: Thomas Petazzoni <[email protected]>
Makefile
support/scripts/fix-rpath
This page took 0.029887 seconds and 4 git commands to generate.