On Sep 4, 9:27 am, "John Krukoff" <[EMAIL PROTECTED]> wrote: > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:python- > > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > > Sent: Tuesday, September 04, 2007 8:07 AM > > To: [EMAIL PROTECTED] > > Subject: GC performance with lists > > > While working on some python wrapping, I've run into some problems > > where the GC seems to take an unreasonable amount of time to run. The > > code below is a demonstration: > > > import gc > > #gc.disable() > > > data = [] > > for i in xrange(100000): > > > shortdata = [] > > for j in range(57): > > mytuple = (j, i+1, i+2, i+3, i+4, i+5, i+6) > > shortdata.append(mytuple) > > data.extend(shortdata) > > > print len(data)
Isn't this the type of program that psyco is supposed to do well with? Perhaps someone else knows a little bit more. -- http://mail.python.org/mailman/listinfo/python-list