summaryrefslogtreecommitdiffstats
path: root/bitbake
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
parente3b66c1dfa94979338d8c005a2b495711701c21f (diff)
downloadpoky-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')
-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):
144 return cacheline 144 return cacheline
145 145
146 def init_cache(self, d): 146 def init_cache(self, d):
147 # Check if we already have the caches
148 if self.pythoncache:
149 return
150
147 MultiProcessCache.init_cache(self, d) 151 MultiProcessCache.init_cache(self, d)
148 152
149 # cachedata gets re-assigned in the parent 153 # cachedata gets re-assigned in the parent