]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF patch #910929: Optimize list comprehensions
authorRaymond Hettinger <python@rcn.com>
Sun, 7 Mar 2004 07:31:06 +0000 (07:31 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 7 Mar 2004 07:31:06 +0000 (07:31 +0000)
commitdd80f762650f42f5f9ae820d9f55b21ed6f33bc0
treef7e7e6545b9896601dd13a1c07e409fef88ede2b
parentbff63f034366b0cf0442e9db5e5674751beca25a
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.
Doc/whatsnew/whatsnew24.tex
Include/opcode.h
Lib/opcode.py
Misc/NEWS
Python/ceval.c
Python/compile.c