summaryrefslogtreecommitdiffstats
path: root/lib/bb/codeparser.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-11 08:56:32 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-16 11:42:56 +0000
commit4f700316933e8e7b2d27366e5ce6176895b913e7 (patch)
tree2cee4199bb22c34048cd1b2960b4b419cc21c9a0 /lib/bb/codeparser.py
parent7974203cd8bc66dff1fcc55f8723dedefaf72840 (diff)
downloadbitbake-contrib-4f700316933e8e7b2d27366e5ce6176895b913e7.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/codeparser.py')
-rw-r--r--lib/bb/codeparser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py
index 82a3af4e0..6c9a42dc3 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