[Python-checkins] python/dist/src/Include opcode.h,2.43,2.44

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sun Mar 7 02:31:08 EST 2004


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8824/Include

Modified Files:
	opcode.h 
Log Message:
SF patch #910929:  Optimize list comprehensions

Add a new opcode, LIST_APPEND, and apply it to the code generation for
list comprehensions.  Reduces the per-loop overhead by about a third.



Index: opcode.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/opcode.h,v
retrieving revision 2.43
retrieving revision 2.44
diff -C2 -d -r2.43 -r2.44
*** opcode.h	24 Apr 2003 05:45:16 -0000	2.43
--- opcode.h	7 Mar 2004 07:31:05 -0000	2.44
***************
*** 22,25 ****
--- 22,26 ----
  #define UNARY_INVERT	15
  
+ #define LIST_APPEND	18
  #define BINARY_POWER	19
  




More information about the Python-checkins mailing list