diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-05-10 18:13:38 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-11 18:00:27 +0100 |
commit | b85bbc52d33e9fd7435ad217eddc750cb132053f (patch) | |
tree | b65bd1f03d26f0c8eb0f77ef2a830b604fe9ae92 /meta/recipes-devtools/transfig | |
parent | 31122b03bf64cf14386251eada8e090a50137576 (diff) | |
download | poky-b85bbc52d33e9fd7435ad217eddc750cb132053f.tar.gz |
sstate.bbclass: Improve sstate_installpkg performance
In a pathological case, lots of files to process, the sstate_installpkg
performance was very poor. It interated over each file and ran 3
individual sed commands per file. Changing this to keep iterating
but running only a single command took about 1/3 time time.
However, when looking at the corresponding sstate_hardcode_path
function, it was clear we could optimize this further.
Using the same encoding logic to specify only the minimumal sed
operation necessary, and using xargs to avoid the os.system call the
install step was able to be performed in 13% of the original time.
Example timing numbers for perl:
3m7s original code
1m20s single sed, but interating
0m26s using xargs and limited sed
(From OE-Core rev: d9f655753fbdc8cbd8e705577430fed4f23732b3)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/transfig')
0 files changed, 0 insertions, 0 deletions