Dave,
Not the OP, but really enjoyed your analysis and solution. Excellent
job!!
Thank you!
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
[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
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
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
-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
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
-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
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
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.
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
10 matches
Mail list logo