Re: monotonically increasing memory usage

2011-07-29 Thread Ulrich Eckhardt
Pedro Larroy wrote:
 Just crossposting this from stackoverflow:
 
 http://stackoverflow.com/...
 
 Any hints?

At first I was just too lazy to visit stackoverflow and skipped this 
posting. Then I thought: Why didn't you include the content, so people can 
actually answer this question here? Therefore the only answer you got here 
is utterly useless because the whole context is missing!

Then, something worse dawned upon me: Since stackoverflow is a free site, 
their business model probably involves data mining or advertising, and since 
you just posted a link to that site with the sole goal of getting people to 
visit it, you have effectively (But I'm definitely not saying intentionally 
and knowingly!) become a spammer.

I'm really not blaming you, but this is puzzling me and I'm not sure how to 
react at the moment...

Cheers!

Uli

-- 
http://mail.python.org/mailman/listinfo/python-list


monotonically increasing memory usage

2011-07-28 Thread Pedro Larroy
Hi

pickling

Just crossposting this from stackoverflow:

http://stackoverflow.com/questions/6857006/python-monotonically-increasing-memory-usage-leak

Any hints?


Pedro.

-- 
Pedro Larroy Tovar   |    http://pedro.larroy.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: monotonically increasing memory usage

2011-07-28 Thread Nobody
On Thu, 28 Jul 2011 11:52:25 +0200, Pedro Larroy wrote:

 pickling
 
 Just crossposting this from stackoverflow:
 
 http://stackoverflow.com/questions/6857006/
 
 Any hints?

AFAIK, it's because the Pickler object keeps a reference to each object so
that pointer-sharing works; if you write the same object multiple times,
you get multiple references to a single object, not multiple objects.

This means that the dictionaries aren't deleted while the Pickler object
lives.

It would seem that this issue could be avoided if pickle used weak
references, but there may be issues which I have overlooked.

-- 
http://mail.python.org/mailman/listinfo/python-list