]> granicus.if.org Git - python/commit
Speed getline_via_fgets(), by supplying two "fast paths", although one is
authorTim Peters <tim.peters@gmail.com>
Mon, 15 Jan 2001 10:36:56 +0000 (10:36 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 15 Jan 2001 10:36:56 +0000 (10:36 +0000)
commit142297ac9204042743c72cee04ec501236c7986d
tree5ce8f523a247584ee116a7b5f0f6783802fb13de
parentf29b64d243a5a1fd64923b9fe40f582fc6eb592a
Speed getline_via_fgets(), by supplying two "fast paths", although one is
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 <wink> -- in fact, the only one who loses
here is Guido ...).
Objects/fileobject.c