If Dill file is too large for RAM is there another way it can be loaded

随声附和 提交于 2020-01-17 05:38:06

问题


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?

来源:https://stackoverflow.com/questions/32465186/if-dill-file-is-too-large-for-ram-is-there-another-way-it-can-be-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!