]> code.ossystems Code Review - openembedded-core.git/commit
sstate.bbclass: Optimise sstate_hardcode_path
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Feb 2012 00:07:05 +0000 (00:07 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Feb 2012 13:36:57 +0000 (13:36 +0000)
commit4159ff761cf29a03aeb56c7686a4e7af02b52219
treeda1ddd6b68704b8ec1f1571f5a0903d5a8ddde8e
parentbb672b1591197966b79fbcf7753f995b8e829e65
sstate.bbclass: Optimise sstate_hardcode_path

The sstate_hardcode_path() function triggered large numbers of exec()
calls when processing packages with large numbers of file relocations
(e.g. perl). This patch optimises those calls into longer single commands
which make the code significantly more efficient.

This reduced the do_package time for perl by 2 minutes (from 4.75 minutes)
for me.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass