summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-07 07:31:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-03-07 07:31:06 (GMT)
commitdd80f762650f42f5f9ae820d9f55b21ed6f33bc0 (patch)
treef7e7e6545b9896601dd13a1c07e409fef88ede2b /Misc/NEWS
parentbff63f034366b0cf0442e9db5e5674751beca25a (diff)
downloadcpython-dd80f762650f42f5f9ae820d9f55b21ed6f33bc0.zip
cpython-dd80f762650f42f5f9ae820d9f55b21ed6f33bc0.tar.gz
cpython-dd80f762650f42f5f9ae820d9f55b21ed6f33bc0.tar.bz2
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 'Misc/NEWS')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 72232c8..f3554c3 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,10 @@ What's New in Python 2.4 alpha 1?
Core and builtins
-----------------
+- Implemented a newcode opcode, LIST_APPEND, that simplifies
+ the generated bytecode for list comprehensions and further
+ improves their performance (about 35%).
+
- Implemented rich comparisons for floats, which seems to make
comparisons involving NaNs somewhat less surprising when the
underlying C compiler actually implements C99 semantics.