monotonically increasing memory usage

N

Nobody

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

Ulrich Eckhardt

Pedro said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top