A fast way to read last line of gzip archive ?

Igor Katson descentspb at gmail.com
Wed May 27 17:25:44 EDT 2009


>
> So in summary, the choices when tested on my system ended up at:
>
>     last             26
>     last-chunk        2.7
>     last-chunk-2      2.3
>     last-popen        1.7
>     last-gzip         1.48
>     last-decompress   1.12
>
> So by being willing to mix in some more direct code with the GzipFile
> object, I was able to beat the overhead of shelling out to the faster
> utilities, while remaining in pure Python.
>
> -- David
>   
Though I didn't need this practically, it was a fantastic reading. 
Gorgeus, David! Thanks for the ultimative post.



More information about the Python-list mailing list