aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/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:55:06 +0000
commitc4032f479ed9c86048f80b327d9fda5fdb255951 (patch)
tree1083ab247922324face04c9ae92609e663df1700 /bitbake/lib/bb/codeparser.py
parente3b66c1dfa94979338d8c005a2b495711701c21f (diff)
downloadopenembedded-core-contrib-c4032f479ed9c86048f80b327d9fda5fdb255951.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/codeparser.py')
-rw-r--r--bitbake/lib/bb/codeparser.py4
1 files changed, 4 insertions, 0 deletions
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