[Python-Dev] Comparison speed

Barry A. Warsaw barry@digicool.com
Wed, 16 May 2001 09:42:15 -0400


>>>>> "TP" == Tim Peters <tim.one@home.com> writes:

    TP> Random clue: when you're too lazy to try to subtact out loop
    TP> overhead (not a knock, I am too), you may have better luck
    TP> with

    TP>     r = [1] * 1000000

    TP> than

    TP>     r = range(1000000)

Ah, good point!