[Patches] [ python-Patches-533482 ] small seek tweak upon reads (gzip)

noreply@sourceforge.net noreply@sourceforge.net
Sat, 23 Mar 2002 18:07:05 -0800


Patches item #533482, was opened at 2002-03-22 08:04
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=533482&group_id=5470

Category: Library (Lib)
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Todd Warner (icode)
>Assigned to: Neil Schemenauer (nascheme)
Summary: small seek tweak upon reads (gzip)

Initial Comment:
Upon actual read of a gzipped file, there is a check
to see if you are already at the end of the file. This
is done by saving your position, seeking to the end,
and comparing that tell(). It is more efficient to
simply increment position + 1.

Efficiency gain is nearly insignificant, but this
patch will greatly decrease the size of my next one. :)

NOTE: all version of gzip.py do this.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=533482&group_id=5470