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/043377.html below:

Python-checkins] python/dist/src/Python ceval.c, 2.383, 2.384

[Python-Dev] Timings [Was: Python-checkins] python/dist/src/Python ceval.c, 2.383, 2.384Raymond Hettinger python at rcn.com
Sat Mar 20 16:26:51 EST 2004
> A 2% speed improvement with gcc on low-endian machines.  My guess is
that
> this
> new pattern for NEXTARG() is detected and optimized as a single
(*short)
> loading.

One other thought:  When testing these kind of optimizations, do not use
PyStone!

Unfortunately, part of its design is to time a long for-loop and the net
that timing out of the total.  At best, that means that improvements to
for-loops don't showup on PyStone.

At worst, PyStone gives results *opposite* of reality.  Because of cache
effects, empty for-loops run a tad faster than for-loops that do
something.


Raymond Hettinger


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