From 9897b81e56eae97dea11b9489a3b691b8fc86441 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 31 Aug 2010 14:19:22 +0100 Subject: 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 --- bitbake/lib/bb/cooker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/cooker.py') 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 -- cgit v1.2.3-54-g00ecf