]> code.ossystems Code Review - openembedded-core.git/commit
staging: Reduce the number of mkdirs calls
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Feb 2017 11:29:06 +0000 (11:29 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Feb 2017 18:02:07 +0000 (18:02 +0000)
commit680fb343be5d0a7f9abbe9c75ca232abe5871663
tree37c8d9217e12bf278f4323951c29410a8bc14ec7
parent3b0af8dc0f796345d1f1ba77ea35bbd090a5feb3
staging: Reduce the number of mkdirs calls

The number of mkdir calls was showing up high on the profile charts since
it was getting called once per file which is excessive. Each call results
in one or more syscalls which is bad for performance. Cache which
directories we've seen to reduce the calls to a more reasonable number
and speed up recipe specific sysroots.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/staging.bbclass