On Sat, Oct 3, 2009 at 4:25 PM, Dag Sverre Seljebotn <[email protected]> wrote:
> > IMO this is not too > horrible, and I think thread local variables are cheap enough that we > can safely use them to propagate exceptions -- *if* we for some reason > don't want __pyx_lineno and __pyx_clineno as function-local variables. > (Which we shouldn't IMO if there's any chance at all that it can > decrease normal running performance.) > I would not be so sure without more testing... these thread local vars are actually implemented with linked lists, then the key lookup is linear... Your test created just a single key, so the lookup was cheap. -- Lisandro Dalcín --------------- 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
