]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-shar-relocate.sh: make it faster
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Sep 2015 06:58:37 +0000 (23:58 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Sep 2015 14:15:47 +0000 (15:15 +0100)
commita619f8e5fd8b88278d41a3d82aca5a8d03cb2907
tree8e26c9e128c09d185b4faf8f318222dde6ca58c1
parentbaa4e43a29e45df17eaa3456acc179b08d571db6
toolchain-shar-relocate.sh: make it faster

Make the extrating faster by:
* Merge the two heavy "for .. find" loops into one
* Move the commands out of for loop rather than inside, this can reduce the
  forking amount.

As a result, when install:
* buildtools-nativesdk-standalone: 14s -> 7s (50% saved)
* core-image-minimal-core2-64-toolchain: 56s -> 47s (17% saved)

[YOCTO #8404]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/toolchain-shar-relocate.sh