this post was submitted on 09 Jun 2023
7 points (100.0% liked)

Python

3235 readers
1 users here now

News and discussions about the programming language Python


founded 5 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] lntl@lemmy.ml 1 points 1 year ago (1 children)

It's a tuple of dicts of tuples of array.array, no numpy or torch :(

[โ€“] alehc@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

So python standard library lists?