diff options
| author | Raymond Hettinger <python@rcn.com> | 2004-03-07 07:31:06 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2004-03-07 07:31:06 +0000 |
| commit | dd80f762650f42f5f9ae820d9f55b21ed6f33bc0 (patch) | |
| tree | f7e7e6545b9896601dd13a1c07e409fef88ede2b /Include | |
| parent | bff63f034366b0cf0442e9db5e5674751beca25a (diff) | |
| download | cpython-git-dd80f762650f42f5f9ae820d9f55b21ed6f33bc0.tar.gz | |
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.
Diffstat (limited to 'Include')
| -rw-r--r-- | Include/opcode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/opcode.h b/Include/opcode.h index 2f3dd04ba4..8df96b4f22 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -21,6 +21,7 @@ extern "C" { #define UNARY_INVERT 15 +#define LIST_APPEND 18 #define BINARY_POWER 19 #define BINARY_MULTIPLY 20 |
