A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/011337.html below:

readlines :: xrange : range

[Python-Dev] xreadlines : readlines :: xrange : range [Python-Dev] xreadlines : readlines :: xrange : rangeGuido van Rossum guido@python.org
Thu, 04 Jan 2001 14:07:13 -0500
> So it looks like the ALLOW_THREADS should be moved out of the for
> loop.  This produced no measureable performance difference on Solaris;
> I'll leave it to GvR to try it on Linux.  I wonder if FreeBSD has some
> unusually slow thread operation?

I kind of doubt that it's Py_ALLOW_THREADS -- it's in the outer loop,
which typically only gets executed once.  It only goes around a second
time when the line is longer than the initial buffer.  We could tweak
the initial buffer size (currently 100, with increments of 1000).

--Guido van Rossum (home page: http://www.python.org/~guido/)




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4