Python example: possible speedup?

ScherBi at BAM.com ScherBi at BAM.com
Wed Sep 8 14:25:29 EDT 1999


 
>> - reading a file one line at a time (self.__fp.readline())

>I don't see an alternative to this, except to read the whole file at
>once, which I am trying to avoid, as the files are large.

possibly using readlines(size), with an appropriate size, will help here.


Bill




More information about the Python-list mailing list