A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-March/042927.html below:

[Python-Dev] New opcode to simplifiy/speedup list comprehensions

[Python-Dev] New opcode to simplifiy/speedup list comprehensions [Python-Dev] New opcode to simplifiy/speedup list comprehensionsAahz aahz at pythoncraft.com
Sat Mar 6 09:41:10 EST 2004
On Sat, Mar 06, 2004, Raymond Hettinger wrote:
>
> If there are no objections, I would like to add an opcode for calling
> PyList_Append().  This simplifies the generated code for list
> comprehensions and reduces the overhead on each pass, improving the
> timings by about 35% on [i for i in itertools.repeat(None, 500)].

Not objections per se, but every ceval.c gets mucked with, it has a
tendency to change overall speed.  Have you checked Python benchmarks on
at least two platforms?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Do not taunt happy fun for loops. Do not change lists you are looping over."
--Remco Gerlich, comp.lang.python

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4