fseek In Compressed Files

Dave Angel davea at davea.name
Sat Feb 1 10:38:10 CET 2014

 Ayushi Dalmia <ayushidalmia2604 at gmail.com> Wrote in message:
> The size of this file will be 10 GB. The version of Python I am using is 2.7.2. Yes, performance is an important issue. 

Then the only viable option is to extract the entire file and
 write it to a temp location. Perhaps as you extract it, you could
 also build a list of offsets,  so the seeking by line number can
 be efficient. 

More information about the Python-list mailing list