On 23 February 2010 10:29, Stefan Behnel <[email protected]> wrote: > > Now, Python 3.x has a new PyDict_GetItemWithError() function that gives us > exactly what we want. So my proposal is to not duplicate any implementation > details from CPython (again!), but instead provide the speedup only for > CPython 3.x. >
I agree. Cython already has many unbenchmarked (is this a word?) optimization that no one knows it they are worth the complexity. After all, if you still need a 4% speedup when looking up in a dict, just use Python C-API, or even implement yourself in C the functionality/semantics you need. -- Lisandro Dalcin --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
