diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2021-05-05 16:40:06 -0500 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-05-07 08:51:32 +0800 |
commit | caa63cae723b9025943f3d60dd8ae852fc52addc (patch) | |
tree | 94b3aa1257caefee22b8565a66d14551c3b4fad2 /oe-init-build-env | |
parent | f91bb6a2a9591e28f37b1c8002dce1d053c33fd4 (diff) | |
download | openembedded-core-caa63cae723b9025943f3d60dd8ae852fc52addc.tar.gz |
classes/image: Use xargs to set file timestamps
Instead of having find directly invoke touch for each file in the root
file system, pass a list to xargs for batching. This significantly
reduces the number of times the touch program is invoked and speeds up
the do_image task time:
PKG TASK ABSDIFF RELDIFF CPUTIME1 -> CPUTIME2
my-image do_image -45.3s -94.2% 48.1s -> 2.8s
Cumulative cputime:
-44.3s -92.3% 00:48.1 (48.1s) -> 00:03.7 (3.7s)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 15c65f90a3aa1e98c2beab2539403157df1fca08)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'oe-init-build-env')
0 files changed, 0 insertions, 0 deletions