<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/fileobject.c, branch v2.1a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/fileobject.c?h=v2.1a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/fileobject.c?h=v2.1a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-01-18T03:03:16Z</updated>
<entry>
<title>Move distributed and duplicated config for stat() and fstat() into pyport.h.</title>
<updated>2001-01-18T03:03:16Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-18T03:03:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=60f42b50d894d3c9798c50e063ae758a1a5987a2'/>
<id>urn:sha1:60f42b50d894d3c9798c50e063ae758a1a5987a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rationalizing the fallback code for portable fseek -- this is all much</title>
<updated>2001-01-16T20:53:31Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-16T20:53:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e54e0be3b6f611914a078ec646a269a71fa8bf7f'/>
<id>urn:sha1:e54e0be3b6f611914a078ec646a269a71fa8bf7f</id>
<content type='text'>
simpler if we use fgetpos and fsetpos, rather than trying to mess with
platform-specific TELL64 alternatives.

Of course, this hasn't been tested on a 64-bit platform, so I may have
to withdraw this -- but I'm hopeful, and Trent Mick supports this
patch!
</content>
</entry>
<entry>
<title>Speed getline_via_fgets(), by supplying two "fast paths", although one is</title>
<updated>2001-01-15T10:36:56Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-15T10:36:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=142297ac9204042743c72cee04ec501236c7986d'/>
<id>urn:sha1:142297ac9204042743c72cee04ec501236c7986d</id>
<content type='text'>
faster than the other.  Should be faster for Mark Favas's 254-character
mail log lines, and *is* 3-4% quicker for my test case with much shorter
lines (but they're typical of *my* text files, and I'm tired of optimizing
for everyone else at my expense &lt;wink&gt; -- in fact, the only one who loses
here is Guido ...).
</content>
</entry>
<entry>
<title>Use the "MS" getline hack (fgets()) by default on non-get_unlocked</title>
<updated>2001-01-15T06:33:19Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-15T06:33:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f29b64d243a5a1fd64923b9fe40f582fc6eb592a'/>
<id>urn:sha1:f29b64d243a5a1fd64923b9fe40f582fc6eb592a</id>
<content type='text'>
platforms.  See NEWS for details.
</content>
</entry>
<entry>
<title>Jeff Epler's patch adding an xreadlines() method.  (It just imports</title>
<updated>2001-01-09T21:50:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-09T21:50:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e07d5cf9663c69d4656249df65543fdca7d6966c'/>
<id>urn:sha1:e07d5cf9663c69d4656249df65543fdca7d6966c</id>
<content type='text'>
the xreadlines module and lets it do its thing.)
</content>
</entry>
<entry>
<title>Tsk, tsk, tsk.  Treat FreeBSD the same as the other BSDs when defining</title>
<updated>2001-01-09T02:00:11Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-09T02:00:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dcf5715db180e09e2ce150e42ce3a6fb4b1b1888'/>
<id>urn:sha1:dcf5715db180e09e2ce150e42ce3a6fb4b1b1888</id>
<content type='text'>
a fallback for TELL64.  Fixes SF Bug #128119.
</content>
</entry>
<entry>
<title>A few reformats; no logic changes.</title>
<updated>2001-01-08T04:02:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-08T04:02:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1c73323d6fb1807123ccbf56019d70d4832f9590'/>
<id>urn:sha1:1c73323d6fb1807123ccbf56019d70d4832f9590</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Let's hope that three time's a charm...</title>
<updated>2001-01-08T01:26:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-08T01:26:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8628206b954541e1d47fe38f4c215ebbdb16baed'/>
<id>urn:sha1:8628206b954541e1d47fe38f4c215ebbdb16baed</id>
<content type='text'>
Tim discovered another "bug" in my get_line() code: while the comments
said that n&lt;0 was invalid, it was in fact still called with n&lt;0 (when
PyFile_GetLine() was called with n&lt;0).  In that case fortunately
executed the same code as for n==0.

Changed the comment to admit this fact, and changed Tim's MS speed
hack code to use 'n &lt;= 0' as the criteria for the speed hack.
</content>
</entry>
<entry>
<title>Fiddled ms_getline_hack after talking w/ Guido:  made clearer that the</title>
<updated>2001-01-08T00:53:12Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-08T00:53:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=15b838521fd5952415871c8f97c4481aa391dc10'/>
<id>urn:sha1:15b838521fd5952415871c8f97c4481aa391dc10</id>
<content type='text'>
code duplication is to let us get away without a realloc whenever possible;
boosted the init buf size (the cutoff at which we *can* get away without
a realloc) from 100 to 200 so that more files can enjoy this boost; and
allowed other threads to run in all cases.  The last two cost something,
but not significantly:  in my fat test case, less than a 1% slowdown total.
Since my test case has a great many short lines, that's probably the worst
slowdown, too.  While the logic barely changed, there were lots of edits.
This also gets rid of the reference to fp-&gt;_cnt, so the last platform
assumption being made here is that fgets doesn't overwrite bytes
capriciously (== beyond the terminating null byte it must write).
</content>
</entry>
<entry>
<title>MS Win32 .readline() speedup, as discussed on Python-Dev.  This is a tricky</title>
<updated>2001-01-07T21:19:34Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-07T21:19:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=86821b2563915e4f11cde045da8ebe01beffa634'/>
<id>urn:sha1:86821b2563915e4f11cde045da8ebe01beffa634</id>
<content type='text'>
variant that never needs to "search from the right".
Also fixed unlikely memory leak in get_line, if string size overflows INTMAX.
Also new std test test_bufio to make sure .readline() works.
</content>
</entry>
</feed>
