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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en -~----------~----~----~----~------~----~------~--~---
