Stefan Behnel, 23.02.2010 16:08: > ... 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. I would > even encourage to revert to PyObject_GetItem() completely, also in Py3, > given that there seems to be no speedup at all.
I'm partly taking this back - was testing with a debug build of Py3.2. With a normal 3.1 build, I see a ~5% performance improvement compared to Py2.6. So I'm for keeping the (rather simple) special case for Py3 and use PyObject_GetItem() in Py2. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
