Memory usage steadily going up while pickling objects

Peter Otten __peter__ at web.de
Sat Jun 15 06:18:35 EDT 2013


Giorgos Tzampanakis wrote:

> So it seems that the pickle module does keep some internal cache or
> something like that. 

I don't think there's a global cache. The Pickler/Unpickler has a per-
instance cache (the memo dict) that you can clear with the clear_memo() 
method, but that doesn't matter here.

> I don't want to resort to reading the pickle source
> code, but it seems I will have to...
 
I'd look somewhere else...




More information about the Python-list mailing list