jkaluza / odcs

Forked from odcs 7 years ago
Clone

9161297 Stop loading whole pungi log into memory

Authored and Committed by lsedlar 4 years ago
    Stop loading whole pungi log into memory
    
    The `readlines` method on file object reads the entire content as a list
    of lines. Since the list is iterated over only once, we can get the
    exact same outcome by iterating over the file object directly. That will
    also yield the lines one by one, but without waiting for the entire file
    to be read.
    
        
file modified
+1 -1