[Python-checkins] CVS: python/dist/src/Misc NEWS,1.273,1.274

Tim Peters tim_one@users.sourceforge.net
Tue, 09 Oct 2001 13:51:21 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv29499/python/Misc

Modified Files:
	NEWS 
Log Message:
Allow the profiler's calibration constant to be specified in the constructor
call, or via setting an instance or class vrbl.
Rewrote the calibration docs.
Modern boxes are so friggin' fast, and a profiler event does so much work
anyway, that the cost of looking up an instance vrbl (the bias constant)
per profile event just isn't a big deal.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.273
retrieving revision 1.274
diff -C2 -d -r1.273 -r1.274
*** NEWS	2001/10/09 05:31:56	1.273
--- NEWS	2001/10/09 20:51:19	1.274
***************
*** 49,54 ****
  
  - Profile.calibrate() has a new implementation that should deliver
!   a better system-specific calibration constant.  Calibration must still
!   be done manually (see the docs for the profile module).
  
  - quopri's encode and decode methods take an optional header parameter,
--- 49,63 ----
  
  - Profile.calibrate() has a new implementation that should deliver
!   a much better system-specific calibration constant.  The constant can
!   now be specified in an instance constructor, or as a Profile class or
!   instance variable, instead of by editing profile.py's source code.
!   Calibration must still be done manually (see the docs for the profile
!   module).
! 
!   Note that Profile.calibrate() must be overriden by subclasses.
!   Improving the accuracy required exploiting detailed knowledge of
!   profiler internals; the earlier method abstracted away the details
!   and measured a simplified model instead, but consequently computed
!   a constant too small by a factor of 2 on some modern machines.
  
  - quopri's encode and decode methods take an optional header parameter,