[Python-Dev] xreadline speed vs readlines_sizehint

Neil Schemenauer nas@arctrix.com
Wed, 10 Jan 2001 10:15:45 -0800


On Wed, Jan 10, 2001 at 06:06:05PM -0500, Tim Peters wrote:
> At this point I'm +0.5 on the idea of fileobject.c using ms_getline_hack
> whenever HAVE_GETC_UNLOCKED isn't available.

Leave it to the timbot use floating point votes. :)

Compare ms_getline_hack to what Perl does in order speed up IO.
I think its worth maintaining that piece of relatively portable
code given the benefit.  If the code has to be maintained then it
might was well be used.  If we find a platform the breaks we can
always disable it before the final release.

  Neil