Reading large files in Python
Why read() blows up on huge files, and how iterators, iterables, generators and the yield keyword let you process them one line at a time.
3 min read
Notes on software engineering, performance, and the tools I use to build things.
Why read() blows up on huge files, and how iterators, iterables, generators and the yield keyword let you process them one line at a time.