prepstrip/ecompressdir: parallelize operations
authorMike Frysinger <vapier@gentoo.org>
Fri, 11 May 2012 16:36:22 +0000 (12:36 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 12 May 2012 04:09:34 +0000 (00:09 -0400)
commit76939c46aa2817bdbcea703432c52e5aa04160f9
tree561409f067c048780846c069e836f69710e92bda
parent0098ee7395e2c9b35471a5c088eef1fa59946912
prepstrip/ecompressdir: parallelize operations

Stealing some ideas from ferringb, add a new API for doing parallel
processing in bash, and then deploy this with the stripping and
compressing stages.

For stripping coreutils which has about 100 ELFs, this brings time
to strip down from ~7 seconds to ~0.7 seconds on my system.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
bin/ebuild-helpers/ecompressdir
bin/ebuild-helpers/prepstrip
bin/helper-functions.sh [new file with mode: 0644]