This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ThurnerRupert
Recipients ThurnerRupert
Date 2008-04-26.10:07:29
SpamBayes Score 0.61449
Marked as misclassified No
Message-id <1209204453.97.0.209118835087.issue2696@psf.upfronthosting.co.za>
In-reply-to
Content
is it possible that str and unicode str are treated differently, i.e.
unicode str does not give memory back? jonas borgström noticed the
following behaviour:

>>> resident_size()
3780
>>> a = ["%i" % i for i in xrange(2**22)]
>>> resident_size()
239580
>>> del a
>>> resident_size()

4128    <-- Most memory returned to the os
>>> a = [u"%i" % i for i in xrange(2**22)]
>>> resident_size()
434532
>>> del a
>>> resident_size()R

401760  <-- Almost nothing returned to the os 


for details see
http://groups.google.com/group/trac-dev/browse_thread/thread/9de74e1d2f62e2ed.
History
Date User Action Args
2008-04-26 10:07:34ThurnerRupertsetspambayes_score: 0.61449 -> 0.61449
recipients: + ThurnerRupert
2008-04-26 10:07:34ThurnerRupertsetspambayes_score: 0.61449 -> 0.61449
messageid: <1209204453.97.0.209118835087.issue2696@psf.upfronthosting.co.za>
2008-04-26 10:07:32ThurnerRupertlinkissue2696 messages
2008-04-26 10:07:31ThurnerRupertcreate