On Mon, Mar 18, 2013 at 9:47 AM, Richard Purdie < [email protected]> wrote:
> Currently, various standard library operations like os.walk(), > os.path.isdir() and os.path.islink() each call stat or lstat which > involves a syscall into the kernel. There is no caching since they could > conceivably have changed on disk. The result is that for something like > the do_package task of the kernel we're spending over two minutes making > 868,000 individual stat calls for 23,000 files. This is suboptimal. > > This patch adds lib/oe/cachedpath.py which are a set of replacement > functions for these operations which use cached stat data rather than > hitting the kernel each time. It gives a nice performance improvement > halving the build time of the kernel do_package. > > Signed-off-by: Richard Purdie <[email protected]> > Looks good, nice job. Signed-off-by: Christopher Larson <[email protected]> -- Christopher Larson
_______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
