This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients bob.ippolito, loewis, nnorwitz, pitrou
Date 2008-01-13.23:23:47
SpamBayes Score 0.040314063
Marked as misclassified No
Message-id <1200266629.76.0.419496031485.issue1479611@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch applicable for SVN trunk.
However, as Bob I have mixed results on this. For example, functions
with variable parameter count have become slower:

# With patch
$ ./python -m timeit -s "def f(*x): pass" 'for x in xrange(10000): f(1)'
100 loops, best of 3: 4.92 msec per loop
$ ./python -m timeit -s "def f(*x): pass" 'for x in xrange(10000): f()'
100 loops, best of 3: 4.07 msec per loop
$ ./python -m timeit -s "def f(*x): pass" 'for x in xrange(10000): f(1,2)'
100 loops, best of 3: 5.04 msec per loop

# Without patch
$ ./python-orig -m timeit -s "def f(*x): pass" 'for x in xrange(10000):
f(1)'
100 loops, best of 3: 4.22 msec per loop
$ ./python-orig -m timeit -s "def f(*x): pass" 'for x in xrange(10000): f()'
100 loops, best of 3: 3.5 msec per loop
$ ./python-orig -m timeit -s "def f(*x): pass" 'for x in xrange(10000):
f(1,2)'
100 loops, best of 3: 4.46 msec per loop
History
Date User Action Args
2008-01-13 23:23:50pitrousetspambayes_score: 0.0403141 -> 0.040314063
recipients: + pitrou, loewis, nnorwitz, bob.ippolito
2008-01-13 23:23:49pitrousetspambayes_score: 0.0403141 -> 0.0403141
messageid: <1200266629.76.0.419496031485.issue1479611@psf.upfronthosting.co.za>
2008-01-13 23:23:48pitroulinkissue1479611 messages
2008-01-13 23:23:48pitroucreate