[Patches] [ python-Patches-1442442 ] Faster list comprehensions
SourceForge.net
noreply at sourceforge.net
Fri Mar 3 13:49:08 CET 2006
Patches item #1442442, was opened at 2006-03-03 07:41
Message generated for change (Comment added) made by collinwinter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1442442&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Collin Winter (collinwinter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Faster list comprehensions
Initial Comment:
The attached patch results in a 16% speed increase for
list comprehensions. By changing how the LIST_APPEND
opcode works (which was previously totally unused),
it's possible to dramatically simplify the emitted
bytecode for listcomps.
More details are available on my blog:
http://oakwinter.com/code/?p=22.
----------------------------------------------------------------------
>Comment By: Collin Winter (collinwinter)
Date: 2006-03-03 07:49
Message:
Logged In: YES
user_id=1344176
I forgot to mention: the patch also includes updates to
things like Lib/test/test_dis.py and Lib/opcode.py to make
them work with the updated LIST_APPEND opcode and code
generation.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1442442&group_id=5470
More information about the Patches
mailing list