pickling large objects

3 years ago by lntl to c/python

I have a large object that I want to save to the disk because it takes a minute to generate. The OOM reaper kills the process while pickle.dump ing the object.

It's a tuple of dicts of tuple of array.array.

Can pickle dump in chunks? If not, is there another technique I can use?

load all comments
Biorix 2 points 3 years ago

How are you dumping it?

Can you show us the code?

Have you tried splitting your tuple and save each dicts of the tuple separately?

path: 0 31207, hotness: undefined, score: 2, children: 0
python

@lemmy.ml

login for more options
3655
109
4

News and discussions about the programming language Python


go to feed...