Read files in chunks
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 15 Apr 2016 07:49:54 +0000 (09:49 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 15 Apr 2016 07:49:54 +0000 (09:49 +0200)
commit653c6617323bc6601c071185265a5f8b663e5e3d
treeaf646dd7e77451d66002ba1270118338ce0b19bc
parent677bb8a719b350b450cb643f16bb57920dbb88c4
Read files in chunks

Calling `f.read()` would read the entire file at once which is
wasteful. It's also not intended given the read loop.

Also replace a use of `readline()` with `read(65536)` as well where we
want to read the entire file and not only single lines.
dak/generate_index_diffs.py