why the `fp.readline()` and `while line:` business? I don't have a big file handy to benchmark but that pattern moves the file reading into python bytecode. The canonical way to read a file line by line while counting…
why the `fp.readline()` and `while line:` business? I don't have a big file handy to benchmark but that pattern moves the file reading into python bytecode. The canonical way to read a file line by line while counting…