If Dill file is too large for RAM is there another

2019-08-30 05:42发布

问题:

If a dill file is to large to RAM, is it possible to load it in an alternative method. For example python3 is throwing Memory Errors when I load a serialized object of about 1.2 GB.

file = open('SerializedData.pkl', 'rb')
data = dill.load(file)

This will not pass because the RAM is too small. However, is it possible to load it in a different way so that I extract the data without overloading the RAM?