Antoine Pitrou [EMAIL PROTECTED] added the comment:
Committed in r65240 (new pybench test) and r65241 (speedup patch).
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1819
Antoine Pitrou [EMAIL PROTECTED] added the comment:
And here is a patch adding a new test in pybench as suggested by
Marc-Andre Lemburg.
Added file: http://bugs.python.org/file10600/pybench.patch
___
Python tracker [EMAIL PROTECTED]
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Here is a new patch against SVN trunk. Nothing changed, except that I
updated pybench to test keyword arguments as well.
Added file: http://bugs.python.org/file10590/namedparam2.patch
___
Python tracker
Changes by Georg Brandl [EMAIL PROTECTED]:
--
assignee: gvanrossum - georg.brandl
nosy: +georg.brandl
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1819
___
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment:
On 2008-06-11 20:38, Antoine Pitrou wrote:
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Here is a new patch against SVN trunk. Nothing changed, except that I
updated pybench to test keyword arguments as well.
Added file:
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment:
On 2008-06-11 23:27, M.-A. Lemburg wrote:
On 2008-06-11 20:38, Antoine Pitrou wrote:
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Here is a new patch against SVN trunk. Nothing changed, except that I
updated pybench to test
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Attaching a version that's a little faster and cleaner with
PySequence_Fast_ITEMS.
--
nosy: +rhettinger
Added file: http://bugs.python.org/file10596/namedparam3.patch
___
Python tracker [EMAIL
Guido van Rossum added the comment:
Nice idea, but why set the priority to high? I have no immediate time
to review this and probably won't for a while.
--
priority: high - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1819
Changes by Facundo Batista:
--
nosy: +facundobatista
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1819
__
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Antoine Pitrou:
This is a patch for SVN trunk which substantially speeds up function
calls with named parameters. It does so by taking into account that
parameter names should be interned, so before doing full compares we do
a first quick loop to compare pointers.
On a
Changes by Antoine Pitrou:
--
type: - rfe
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1819
__
___
Python-bugs-list mailing list
Unsubscribe:
Christian Heimes added the comment:
Nice! Is this somehow related to #1479611?
The formatting of the code looks kinda strange. Have you mixed tabs and
spaces?
--
assignee: - gvanrossum
keywords: +patch
nosy: +gvanrossum, tiran
priority: - high
__
Antoine Pitrou added the comment:
Sorry, my editor indents with spaces by default. Attaching a fixed patch
with tabs.
No, it is independent from #1479611 (and much simpler).
Added file: http://bugs.python.org/file9157/namedparam.patch
__
Tracker [EMAIL
Antoine Pitrou added the comment:
Another quick test:
# With patch
$ ./python -m timeit -s d=dict(a=1,b=2,c=3,d=4,e=5);f = lambda
a,b,c,d,e:0 f(**d)
100 loops, best of 3: 0.727 usec per loop
$ ./python -m timeit -s d=dict(b=2,c=3,d=4,e=5);f = lambda a,b,c,d,e:0
f(a=1,**d)
100 loops,
14 matches
Mail list logo