[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()3780a = ["%i" % i for i in xrange(2**22)] resident_size()239580del a resident_size()4128 <-- Most memory returned to the os>>> a = [u"%i" % i for i in xrange(2**22)]resident_size()434532del a resident_size()R401760 <-- Almost nothing returned to the osthere is a ticket concerning this, and patches: http://bugs.python.org/issue2321.
Notice who the people comment on and watching that ticket are? --Noah
signature.asc
Description: OpenPGP digital signature
