From c4032f479ed9c86048f80b327d9fda5fdb255951 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 11 Nov 2015 08:56:32 -0800 Subject: bitbake: 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. (Bitbake rev: 4f700316933e8e7b2d27366e5ce6176895b913e7) Signed-off-by: Richard Purdie --- bitbake/lib/bb/codeparser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py index 82a3af4e06..6c9a42dc39 100644 --- a/bitbake/lib/bb/codeparser.py +++ b/bitbake/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 -- cgit v1.2.3-54-g00ecf