Huge performance gain compared to perl while loading a text file in a list ...!?
mart.franklin at gmail.com
Sun Mar 13 21:55:39 CET 2005
Paul Rubin wrote:
> "Marc H." <coolroot at gmail.com> writes:
>>I'm fairly new to python, and don't know much of its inner working so
>>I wonder if someone could explain to me why it is so much faster in
>>python to open a file and load it in a list/array ?
> My guess is readlines() in Python is separating on newlines while Perl
> is doing a regexp scan for the RS string (I forget what it's called in
I remember when it was the other way round ;-)
More information about the Python-list