Is it faster to read a Zip file while unzipping it (in a stream) or wait for it complete unzipping and then read it?

242 Views Asked by At

I am currently reading a CSV file from a zip file. I have 2 options to read it.

  1. Read the CSV while it is being unzipped line by line by streaming it (ZipInputStream and openCSV)
  2. Unzip the entire CSV file first, and then go back and read the entire thing.

Which one would be faster? I am going to perform some tests but I was wondering if anyone already knew logistically which is more efficient. Thanks!

0

There are 0 best solutions below