summaryrefslogtreecommitdiffstats
path: root/Lib/plat-irix6/IOCTL.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-08 00:53:12 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-08 00:53:12 (GMT)
commit15b838521fd5952415871c8f97c4481aa391dc10 (patch)
tree435c569b8818f23bf06d56b19e091b317ceca95d /Lib/plat-irix6/IOCTL.py
parent86821b2563915e4f11cde045da8ebe01beffa634 (diff)
downloadcpython-15b838521fd5952415871c8f97c4481aa391dc10.zip
cpython-15b838521fd5952415871c8f97c4481aa391dc10.tar.gz
cpython-15b838521fd5952415871c8f97c4481aa391dc10.tar.bz2
Fiddled ms_getline_hack after talking w/ Guido: made clearer that the
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->_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).
Diffstat (limited to 'Lib/plat-irix6/IOCTL.py')
0 files changed, 0 insertions, 0 deletions