in reply to Re^9: Reading zipped files (.gz)
in thread Reading zipped files (.gz)

Is this method is better or using a module is better??? If there is any change in execution time I dont have any objection. My main concern is memory.

Replies are listed 'Best First'.
Re^11: Reading zipped files (.gz)
by Corion (Patriarch) on Nov 18, 2015 at 10:22 UTC

    Using this method, your program will read line-by-line from what the gzip program outputs. Maybe you can measure the differences in RAM usage if you decompress data yourself and if you let gzip decompress data.