MemoryError and Pickle

Peter Otten __peter__ at web.de
Mon Nov 21 19:40:26 EST 2016


Fillmore wrote:

> Hi there, Python newbie here.
> 
> I am working with large files. For this reason I figured that I would
> capture the large input into a list and serialize it with pickle for
> later (faster) usage.

But is it really faster? If the pickle is, let's say, twice as large as the 
original file it should take roughly twice as long to read the data...





More information about the Python-list mailing list