Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10465
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Subject | Re: monotonically increasing memory usage |
| Date | 2011-07-28 18:01 +0100 |
| Message-Id | <pan.2011.07.28.17.01.14.6000@nowhere.com> |
| Newsgroups | comp.lang.python |
| References | <mailman.1563.1311846747.1164.python-list@python.org> |
| Organization | Zen Internet |
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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
monotonically increasing memory usage Pedro Larroy <pedro.larroy@gmail.com> - 2011-07-28 11:52 +0200 Re: monotonically increasing memory usage Nobody <nobody@nowhere.com> - 2011-07-28 18:01 +0100 Re: monotonically increasing memory usage Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-07-29 13:35 +0200
csiph-web