Memory usage steadily going up while pickling objects

Giorgos Tzampanakis giorgos.tzampanakis at gmail.com
Sat Jun 15 07:06:26 EDT 2013


On 2013-06-15, Peter Otten wrote:

> 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...
>

Indeed. The problem was in my code after all. Still, thanks to all for the
memory debugging tips!


-- 
Real (i.e. statistical) tennis and snooker player rankings and ratings:
http://www.statsfair.com/ 



More information about the Python-list mailing list