summaryrefslogtreecommitdiffstats
path: root/meta/classes/own-mirrors.bbclass
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2014-02-10 15:15:29 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-11 11:55:51 +0000
commit01932d6bbc71e86fd903097b5339e91f76846388 (patch)
tree9b1572c85ec16fa876fc0e4e6117bc597ee5031e /meta/classes/own-mirrors.bbclass
parentb1bdc1c6fb6914d85f888acde9d806d5560c84d8 (diff)
downloadopenembedded-core-01932d6bbc71e86fd903097b5339e91f76846388.tar.gz
kernel: stop using -exec rm for deleting files
Removing files from the source tree via find, exec and rm is not the most efficient operation, due to (among other things) the many forked processes. If we use -delete, it saves a significant amount of time. But -delete does not work with -prune (since it forces -depth). To maintain the lib, tools and scripts source files, we can hide them temporarily, skip their hidden directories and then finally restore them. Time for install before this change: real 2m48.563s user 0m35.220s sys 0m33.036s Time for install after this change: real 1m21.301s user 0m33.160s sys 0m28.388s We could further speed this up by using inline perl to delete the files, but that complexity is avoided for now. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/own-mirrors.bbclass')
0 files changed, 0 insertions, 0 deletions