]> code.ossystems Code Review - openembedded-core.git/commit
cache: sync the cache file to disk in the background
authorChris Larson <chris_larson@mentor.com>
Fri, 19 Nov 2010 05:47:36 +0000 (22:47 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:43 +0000 (14:46 +0000)
commit7c9444e9a58438058ec577bd8c2e51820c98072d
tree55074d2c00afa924707bb5b5d30b22bc6688594d
parent95d2f56126d459b9e7f000d22ed7c1206d1a8f68
cache: sync the cache file to disk in the background

This version uses a thread rather than a process, to avoid problems with
waitpid handling.  This gives slightly less overall build time reduction than
the separate process for it did (this reduces a -c compile coreutils-native by
about 3 seconds, while the process reduced it by 7 seconds), however this time
is quite insignificant relative to a typical build.

The biggest issue with non-backgrounded syncing is the perceived delay before
work begins, and this resolves that without breaking anything, or so it seems.

(Bitbake rev: 5ab6c5c7b007b8c77c751582141afc07c183d672)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/cooker.py
bitbake/lib/bb/event.py
bitbake/lib/bb/ui/knotty.py
bitbake/lib/bb/ui/uievent.py