diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-31 14:19:22 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-31 14:49:14 +0100 |
commit | 9897b81e56eae97dea11b9489a3b691b8fc86441 (patch) | |
tree | 78b9e73fd6c8d13b797b54cb3c3d885d9b4ca7eb /bitbake/lib/bb/cooker.py | |
parent | 332c33af188c14dd0051d8a45fe0ad680611db69 (diff) | |
download | openembedded-core-9897b81e56eae97dea11b9489a3b691b8fc86441.tar.gz openembedded-core-9897b81e56eae97dea11b9489a3b691b8fc86441.tar.bz2 openembedded-core-9897b81e56eae97dea11b9489a3b691b8fc86441.zip |
bitbake/codeparser: Implement persistent cache
For a given input to this code, the output doesn't change to implement a persistent
cache of the data to speed up parsing.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index dcdcb7d443..ea33693ddb 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -546,6 +546,7 @@ class BBCooker: if bb.data.getVar("BB_WORKERCONTEXT", self.configuration.data) is None: bb.fetch.fetcher_init(self.configuration.data) + bb.codeparser.parser_cache_init(self.configuration.data) bb.event.fire(bb.event.ConfigParsed(), self.configuration.data) @@ -1011,6 +1012,7 @@ class CookerParser: if self.pointer >= self.total: cooker.bb_cache.sync() + bb.codeparser.parser_cache_save(cooker.configuration.data) if self.error > 0: raise ParsingErrorsFound return False |