Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10465
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeds.phibee-telecom.net!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!reader02.news.zen.co.uk.POSTED!not-for-mail |
|---|---|
| From | Nobody <nobody@nowhere.com> |
| Subject | Re: monotonically increasing memory usage |
| Date | Thu, 28 Jul 2011 18:01:15 +0100 |
| User-Agent | Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
| 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> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 20 |
| Organization | Zen Internet |
| NNTP-Posting-Host | 2157069f.news.zen.co.uk |
| X-Trace | DXC=Gn[XmDKDJM;IC9bn?J6iN;YjZGX^207P;`<MJMoM3PF=KWQ9BB:CgE7NQ<`Sf8^Ta?@E:CjSA55c;kML7B7EO:h: |
| X-Complaints-To | abuse@zen.co.uk |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:10465 |
Show key headers only | View raw
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