aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-31 14:19:22 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-31 14:49:14 +0100
commit9897b81e56eae97dea11b9489a3b691b8fc86441 (patch)
tree78b9e73fd6c8d13b797b54cb3c3d885d9b4ca7eb /bitbake/lib/bb/cooker.py
parent332c33af188c14dd0051d8a45fe0ad680611db69 (diff)
downloadopenembedded-core-contrib-9897b81e56eae97dea11b9489a3b691b8fc86441.tar.gz
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.py2
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