[EMAIL PROTECTED] wrote:
On Mar 11, 12:37 am, Jonas Borgström <[EMAIL PROTECTED]> wrote:
This is definitely very interesting and helpful. I did some further
testing and noticed that the behavior differs between normal str strings
and unicode strings:

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


there is a ticket concerning this, and patches: 
http://bugs.python.org/issue2321.

Notice who the people comment on and watching that ticket are?

--Noah

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to