Skip to content

Commit

Permalink
codeparser: Only load the codeparser cache once
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rpurdie committed Nov 16, 2015
1 parent 7974203 commit 4f70031
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bb/codeparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ def newShellCacheLine(self, execs):
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
Expand Down

0 comments on commit 4f70031

Please sign in to comment.