Re: A fast way to read last line of gzip archive ?

2009-05-27 Thread python
Dave, Not the OP, but really enjoyed your analysis and solution. Excellent job!! Thank you! Malcolm -- http://mail.python.org/mailman/listinfo/python-list

RE: A fast way to read last line of gzip archive ?

2009-05-26 Thread Barak, Ron
[mailto:db3l@gmail.com] Sent: Tuesday, May 26, 2009 03:56 To: python-list@python.org Subject: Re: A fast way to read last line of gzip archive ? Barak, Ron ron.ba...@lsi.com writes: I couldn't really go with the shell utilities approach, as I have no say in my user environment

RE: A fast way to read last line of gzip archive ?

2009-05-25 Thread Barak, Ron
to (human) users. Bye, Ron. -Original Message- From: David Bolen [mailto:db3l@gmail.com] Sent: Monday, May 25, 2009 01:58 To: python-list@python.org Subject: Re: A fast way to read last line of gzip archive ? Barak, Ron ron.ba...@lsi.com writes: I thought maybe someone has

Re: A fast way to read last line of gzip archive ?

2009-05-25 Thread David Bolen
Barak, Ron ron.ba...@lsi.com writes: I couldn't really go with the shell utilities approach, as I have no say in my user environment, and thus cannot assume which binaries are install on the user's machine. I suppose if you knew your target you could just supply the external binaries to go

RE: A fast way to read last line of gzip archive ?

2009-05-24 Thread Barak, Ron
-Original Message- From: MRAB [mailto:goo...@mrabarnett.plus.com] Sent: Thursday, May 21, 2009 19:02 To: 'python-list@python.org' Subject: Re: A fast way to read last line of gzip archive ? Barak, Ron wrote: Hi, I need to read the end of a 20 MB gzip archives

Re: A fast way to read last line of gzip archive ?

2009-05-24 Thread garabik-news-2005-05
Barak, Ron ron.ba...@lsi.com wrote: I thought maybe someone has a way to unzip just the end portion of the archive (instead of the whole archive), as only the last part is needed for reading the last line. dictzip (python implementation part of my serpento package) you have to compress

RE: A fast way to read last line of gzip archive ?

2009-05-24 Thread Barak, Ron
-Original Message- From: garabik-news-2005...@kassiopeia.juls.savba.sk [mailto:garabik-news-2005...@kassiopeia.juls.savba.sk] Sent: Sunday, May 24, 2009 13:37 To: python-list@python.org Subject: Re: A fast way to read last line of gzip archive ? Barak, Ron ron.ba...@lsi.com

Re: A fast way to read last line of gzip archive ?

2009-05-24 Thread David Bolen
Barak, Ron ron.ba...@lsi.com writes: I thought maybe someone has a way to unzip just the end portion of the archive (instead of the whole archive), as only the last part is needed for reading the last line. The problem is that gzip compressed output has no reliable intermediate break points

A fast way to read last line of gzip archive ?

2009-05-21 Thread Barak, Ron
Hi, I need to read the end of a 20 MB gzip archives (To extract the date from the last line of a a gzipped log file). The solution I have below takes noticeable time to reach the end of the gzip archive. Does anyone have a faster solution to read the last line of a gzip archive ? Thanks, Ron.

Re: A fast way to read last line of gzip archive ?

2009-05-21 Thread MRAB
Barak, Ron wrote: Hi, I need to read the end of a 20 MB gzip archives (To extract the date from the last line of a a gzipped log file). The solution I have below takes noticeable time to reach the end of the gzip archive. Does anyone have a faster solution to read the last line of a gzip