[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


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