[Python-checkins] CVS: python/dist/src PLAN.txt,1.14,1.15

Guido van Rossum gvanrossum@users.sourceforge.net
Fri, 12 Oct 2001 10:43:45 -0700


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

Modified Files:
	PLAN.txt 
Log Message:
The dynamic performance hack is (mostly) done.


Index: PLAN.txt
===================================================================
RCS file: /cvsroot/python/python/dist/src/PLAN.txt,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** PLAN.txt	2001/10/10 14:28:58	1.14
--- PLAN.txt	2001/10/12 17:43:43	1.15
***************
*** 5,18 ****
  -----------
  
- More performance work -- one particular test, test_descr.inherits(),
- is still about 50% slower with dynamic classes. :-(  The approach of
- choice would be:
- 
-     Add a list of weak refs to derived classes to each dynamic
-     class, and trap setattr+delattr on the base class so that they
-     update the tp_XXX slot in each derived class when the base class
-     __XXX__ gets set or deleted.  More work, but more gain (zero waste
-     in slot_tp_XXX when __XXX__ is not overridden).
- 
  Add __del__ handlers?
  
--- 5,8 ----
***************
*** 35,38 ****
--- 25,39 ----
  Done (mostly)
  -------------
+ 
+ More performance work -- one particular test, test_descr.inherits(),
+ is still about 50% slower with dynamic classes. :-(  The approach of
+ choice would be:
+ 
+     Add a list of weak refs to derived classes to each dynamic
+     class, and trap setattr+delattr on the base class so that they
+     update the tp_XXX slot in each derived class when the base class
+     __XXX__ gets set or deleted.  More work, but more gain (zero waste
+     in slot_tp_XXX when __XXX__ is not overridden).
+ *** That's done now, with great success. ***
  
  Make __dynamic__ the default.  *** done (but more performance work