summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2019-07-26 08:19:27 +0100
committerBenjamin Schubert <contact@benschubert.me>2019-07-26 08:55:04 +0100
commit6d70e5d432bd1197012201d00ecbe84d31725e7d (patch)
tree15c219347eb403e061ddd2e9d92b133b9c3cff35
parent41b4eb57df05f52140c68c27b5e6dd3d1b461d32 (diff)
downloadbuildstream-6d70e5d432bd1197012201d00ecbe84d31725e7d.tar.gz
loader: Don't pickle caches for child jobs, they are not needed there
Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-rw-r--r--src/buildstream/_loader/loader.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildstream/_loader/loader.py b/src/buildstream/_loader/loader.py
index cdfc1dd56..33ccfb6fe 100644
--- a/src/buildstream/_loader/loader.py
+++ b/src/buildstream/_loader/loader.py
@@ -169,6 +169,11 @@ class Loader():
#
del state['_fetch_subprojects']
+ # Also there's no gain in pickling over the caches, and they might
+ # contain things which are unpleasantly large or unable to pickle.
+ del state['_elements']
+ del state['_meta_elements']
+
return state
# clean_caches()