[issue1819] Speed hack for function calls with named parameters

2008-07-25 Thread Antoine Pitrou
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

[issue1819] Speed hack for function calls with named parameters

2008-06-12 Thread Antoine Pitrou
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]

[issue1819] Speed hack for function calls with named parameters

2008-06-11 Thread Antoine Pitrou
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

[issue1819] Speed hack for function calls with named parameters

2008-06-11 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: gvanrossum - georg.brandl nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1819 ___

[issue1819] Speed hack for function calls with named parameters

2008-06-11 Thread Marc-Andre Lemburg
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:

[issue1819] Speed hack for function calls with named parameters

2008-06-11 Thread Marc-Andre Lemburg
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

[issue1819] Speed hack for function calls with named parameters

2008-06-11 Thread Raymond Hettinger
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

[issue1819] Speed hack for function calls with named parameters

2008-01-22 Thread Guido van Rossum
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

[issue1819] Speed hack for function calls with named parameters

2008-01-14 Thread Facundo Batista
Changes by Facundo Batista: -- nosy: +facundobatista __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1819 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1819] Speed hack for function calls with named parameters

2008-01-13 Thread Antoine Pitrou
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

[issue1819] Speed hack for function calls with named parameters

2008-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou: -- type: - rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1819 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1819] Speed hack for function calls with named parameters

2008-01-13 Thread Christian Heimes
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 __

[issue1819] Speed hack for function calls with named parameters

2008-01-13 Thread Antoine Pitrou
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

[issue1819] Speed hack for function calls with named parameters

2008-01-13 Thread Antoine Pitrou
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,