[Python-checkins] CVS: python/dist/src/Misc NEWS,1.94,1.95
Tim Peters
python-dev@python.org
Sun, 14 Jan 2001 22:33:21 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Lib UserString.py,1.7,1.8 urllib.py,1.110,1.111 urllib2.py,1.6,1.7 urlparse.py,1.27,1.28 uu.py,1.14,1.15 warnings.py,1.3,1.4 wave.py,1.13,1.14 webbrowser.py,1.6,1.7 whrandom.py,1.17,1.18 xdrlib.py,1.10,1.11 xmllib.py,1.25,1.26 zipfile.py,1.4,1.5
- Next message: [Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.104,2.105
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv30235/python/dist/src/Misc
Modified Files:
NEWS
Log Message:
Use the "MS" getline hack (fgets()) by default on non-get_unlocked
platforms. See NEWS for details.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -r1.94 -r1.95
*** NEWS 2001/01/13 14:53:34 1.94
--- NEWS 2001/01/15 06:33:19 1.95
***************
*** 26,34 ****
- Even if you don't use file.xreadlines(), you may expect a speedup on
line-by-line input. The file.readline() method has been optimized
! quite a bit in platform-specific ways, both on Windows (using an
! incredibly complex, but nevertheless thread-safe), and on systems
! (like Linux) that support flockfile(), getc_unlocked(), and
! funlockfile(). In addition, the fileinput module, while still slow,
! has been sped up too, by using file.readlines(sizehint).
- Support for run-time warnings has been added, including a new
--- 26,46 ----
- Even if you don't use file.xreadlines(), you may expect a speedup on
line-by-line input. The file.readline() method has been optimized
! quite a bit in platform-specific ways: on systems (like Linux) that
! support flockfile(), getc_unlocked(), and funlockfile(), those are
! used by default. On systems (like Windows) without getc_unlocked(),
! a complicated (but still thread-safe) method using fgets() is used by
! default.
!
! You can force use of the fgets() method by #define'ing
! USE_FGETS_IN_GETLINE at build time (it may be faster than
! getc_unlocked()).
!
! You can force fgets() not to be used by #define'ing
! DONT_USE_FGETS_IN_GETLINE (this is the first thing to try if std test
! test_bufio.py fails -- and let us know if it does!).
!
! - In addition, the fileinput module, while still slower than the other
! methods on most platforms, has been sped up too, by using
! file.readlines(sizehint).
- Support for run-time warnings has been added, including a new
- Previous message: [Python-checkins] CVS: python/dist/src/Lib UserString.py,1.7,1.8 urllib.py,1.110,1.111 urllib2.py,1.6,1.7 urlparse.py,1.27,1.28 uu.py,1.14,1.15 warnings.py,1.3,1.4 wave.py,1.13,1.14 webbrowser.py,1.6,1.7 whrandom.py,1.17,1.18 xdrlib.py,1.10,1.11 xmllib.py,1.25,1.26 zipfile.py,1.4,1.5
- Next message: [Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.104,2.105
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]