On Feb 23, 2010, at 7:33 AM, Lisandro Dalcin wrote:

> On 23 February 2010 12:08, Stefan Behnel <[email protected]> wrote:
>>
>> ... and I used the micro benchmark that Robert committed to check  
>> if there
>> is any difference for the d[key] implementation. I couldn't see  
>> any, so I
>> simplified the implementation to use PyObject_GetItem() in Py2.
>
> +1

+1, that code's not worth it (but at least now we know). I realized  
that I accidently checked the microbenchmark in, but left it in there  
to see if anyone else got anything different.

It would be nice to avoid the cost of the method lookup for d.get(...)  
for Py2, but the apis aren't very conducive to that...

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to