In article <[EMAIL PROTECTED]>,
Nick Craig-Wood  <[EMAIL PROTECTED]> wrote:
>Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>>
>>  Or you could just have an "object leak" somewhere. Do you have any
>>  complicated circular references that the garbage collector can't resolve?
>>  Lists-of-lists? Trees? Anything where objects aren't being freed when you
>>  think they are? Are you holding on to references to lists? It's more
>>  likely that your code simply isn't freeing lists you think are being freed
>>  than it is that Python is holding on to tens of megabytes of random
>>  text.
>
>This is surely just the fragmented heap problem.

Possibly.  I believe PyMalloc doesn't have as much a problem in this
area, but off-hand I don't remember the extent to which strings use
PyMalloc.  Nevertheless, my bet is on holding references as the problem
with doubled memory use.
-- 
Aahz ([EMAIL PROTECTED])           <*>         http://www.pythoncraft.com/

"Typing is cheap.  Thinking is expensive."  --Roy Smith
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to