codeparser: Only load the codeparser chace once
PATCH 1/1 codeparser: Only load the codeparser chace 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 <[email protected]>
bitbake/lib/bb/codeparser.py +4 -0
@@ -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
Is that a typo in the symmary "chace"?
Quoted 23 lines · Richard Purdie
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 <[email protected]>bitbake/lib/bb/codeparser.py +4
-0@@ -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