[bitbake-devel] [PATCH] codeparser: Only load the codeparser chace once

Mark Hatle mark.hatle at windriver.com
Wed Nov 11 21:10:25 UTC 2015


Is that a typo in the symmary "chace"?

On 11/11/15 10:56 AM, Richard Purdie wrote:
> 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 at 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
> 
> 




More information about the bitbake-devel mailing list