Mailing List Archive

CVS: python/dist/src/Misc NEWS,1.164,1.165
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv21481/python/dist/src/Misc

Modified Files:
NEWS
Log Message:
Variant of patch #423262: Change module attribute get & set
Allow module getattr and setattr to exploit string interning, via the
previously null module object tp_getattro and tp_setattro slots. Yields
a very nice speedup for things like random.random and os.path etc.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.164
retrieving revision 1.165
diff -C2 -r1.164 -r1.165
*** NEWS 2001/05/10 08:32:44 1.164
--- NEWS 2001/05/11 21:51:48 1.165
***************
*** 45,48 ****
--- 45,51 ----
operator.countOf() (PySequence_Count() in C API)

+ - Accessing module attributes is significantly faster (for example,
+ random.random or os.path or yourPythonModule.yourAttribute).
+
- Comparing dictionary objects via == and != is faster, and now works even
if the keys and values don't support comparisons other than ==.