Author pitrou
Recipients christian.heimes, gvanrossum, pitrou
Date 2008-01-14.01:25:38
SpamBayes Score 0.128945
Marked as misclassified No
Message-id <1200273939.95.0.463250016139.issue1819@psf.upfronthosting.co.za>
In-reply-to
Content
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)"
1000000 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)"
1000000 loops, best of 3: 1.16 usec per loop
$ ./python -m timeit -s "d=dict(b=2,c=3,d=4,e=5); f=lambda **kw:0" "f(**d)"
1000000 loops, best of 3: 0.917 usec per loop

# Without patch
$ ./python-orig -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)"
1000000 loops, best of 3: 1.24 usec per loop
$ ./python-orig -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)"
1000000 loops, best of 3: 1.62 usec per loop
$ ./python-orig -m timeit -s "d=dict(b=2,c=3,d=4,e=5); f=lambda **kw:0"
"f(**d)"
1000000 loops, best of 3: 0.904 usec per loop
History
Date User Action Args
2008-01-14 01:25:40pitrousetspambayes_score: 0.128945 -> 0.128945
recipients: + pitrou, gvanrossum, christian.heimes
2008-01-14 01:25:40pitrousetspambayes_score: 0.128945 -> 0.128945
messageid: <1200273939.95.0.463250016139.issue1819@psf.upfronthosting.co.za>
2008-01-14 01:25:38pitroulinkissue1819 messages
2008-01-14 01:25:38pitroucreate