From 4f700316933e8e7b2d27366e5ce6176895b913e7 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 11 Nov 2015 08:56:32 -0800 Subject: [PATCH] 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 --- lib/bb/codeparser.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3