bitbake: build.py: Only execute mkdirhier if stampdir doesn't exist
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2012 15:57:47 +0000 (16:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Aug 2012 10:19:02 +0000 (11:19 +0100)
commitc4fe77f4a80778c9ff8cd4b8ad3f38c6d16a3947
tree4a208fa0992addda26a6c7d2b7e7d29cf4eb6ffb
parent844c0857eab4c332e035398b813717903ad361b8
bitbake: build.py: Only execute mkdirhier if stampdir doesn't exist

I noticed this was showing up on profile logs as a sigificant time user
in "bitbake bash" when bash was already built. It reduces the time from
5.2 to 4.5 seconds in my test environment.

We make use of the parser's mtime cache as once a directory exists,
we can assume it continues to exist and this avoids syscalls.

(Bitbake rev: 769b694eeb617bb793bd79d0d7b29c43d2646ece)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/build.py