[Python-Dev] Re: [Patches] [Patch #103082] speed up readline() using getc_unlocked()
Guido van Rossum
guido@python.org
Wed, 03 Jan 2001 15:45:38 -0500
I should add that the patches are on SourceForge:
fileinput.py:
http://sourceforge.net/patch/?func=detailpatch&patch_id=103081&group_id=5470
fileobject.c:
http://sourceforge.net/patch/?func=detailpatch&patch_id=103082&group_id=5470
I'm ready to check these in, but I'm waiting 24 hours in case there's
something I've missed. (I haven't actually tested these on any other
platform besides Linux.)
Jeff Epler's xreadlines patch is here:
http://sourceforge.net/patch/?func=detailpatch&patch_id=102915&group_id=5470
Note that Jeff's patch includes a patch to fileinput.py that does the
same thing as mine but using his xreadlines module instead of directly
using readlines(sizehint) as does mine. I like my approach better,
mostly because it reduces depenencies.
--Guido van Rossum (home page: http://www.python.org/~guido/)