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

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.