All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] codeparser: Only load the codeparser chace once
@ 2015-11-11 16:56 Richard Purdie
  2015-11-11 21:10 ` Mark Hatle
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2015-11-11 16:56 UTC (permalink / raw)
  To: bitbake-devel

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>

diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index 82a3af4..6c9a42d 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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-11 21:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-11 16:56 [PATCH] codeparser: Only load the codeparser chace once Richard Purdie
2015-11-11 21:10 ` Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.