From: Richard Purdie Date: Wed, 11 Nov 2015 16:56:32 +0000 (-0800) Subject: codeparser: Only load the codeparser cache once X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f700316933e8e7b2d27366e5ce6176895b913e7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git codeparser: Only load the codeparser cache once The server state gets reset multiple times during startup and currently we reload the codeparser cache each time. This is pointless and causes unnecessary interaction time with bitbake. Signed-off-by: Richard Purdie --- diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py index 82a3af4e06f..6c9a42dc390 100644 --- a/lib/bb/codeparser.py +++ b/lib/bb/codeparser.py @@ -144,6 +144,10 @@ class CodeParserCache(MultiProcessCache): return cacheline def init_cache(self, d): + # Check if we already have the caches + if self.pythoncache: + return + MultiProcessCache.init_cache(self, d) # cachedata gets re-assigned in the parent