Python(2.5) reads an input file FASTER than pure C(Mingw)

n00m n00m at narod.ru
Sun Apr 27 14:05:38 EDT 2008


Both codes by Dennis Lee Bieber are Ok. The 2nd one ("slurper") ,
seems , a bit faster.
I only corrected the author's typo: should be "% div" instead of "/
div".
And added this (don't know helped it or not):

if div == 1:
    print lim
    return

And of course:

import psyco
psyco.full()



More information about the Python-list mailing list