[Python-checkins]
python/dist/src/Doc/whatsnew whatsnew24.tex, 1.36, 1.37
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sun Mar 7 02:31:07 EST 2004
Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8824/Doc/whatsnew
Modified Files:
whatsnew24.tex
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: whatsnew24.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew24.tex,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** whatsnew24.tex 4 Mar 2004 08:25:44 -0000 1.36
--- whatsnew24.tex 7 Mar 2004 07:31:05 -0000 1.37
***************
*** 289,292 ****
--- 289,296 ----
\samp{map(mydict.__getitem__, keylist)}.
+ \item Added an newcode opcode, \code{LIST_APPEND}, that simplifies
+ the generated bytecode for list comprehensions and speeds them up
+ by about a third.
+
\end{itemize}
More information about the Python-checkins
mailing list