Creating Long Lists

John Bokma john at castleamber.com
Tue Feb 22 04:13:53 CET 2011


alex23 <wuwei23 at gmail.com> writes:

> On Feb 22, 12:57 pm, Kelson Zawack <zawack... at gis.a-star.edu.sg>
> wrote:
>> I did not bother to further analyze or benchmark it.  Since the answers
>> in the above forums do not seem very definitive  I thought  I would
>> inquire here about what the reason for this decrease in performance is,
>> and if there is a way, or another data structure, that would avoid this
>> problem.
>
> The first link is 6 years old and refers to Python 2.4. Unless you're
> using 2.4 you should probably ignore it.
>
> The first answer on the stackoverflow link was accepted by the poster
> as resolving his issue. Try disabling garbage collection.

I just read http://bugs.python.org/issue4074 which discusses a patch
that has been included 2 years ago. So using a recent Python 2.x also
doesn't have this issue?

-- 
John Bokma                                                               j3b

Blog: http://johnbokma.com/    Facebook: http://www.facebook.com/j.j.j.bokma
    Freelance Perl & Python Development: http://castleamber.com/



More information about the Python-list mailing list