[sage-devel] Re: Does cython have to be slow for attribute lookup in deep MRO?

2013-04-07 Thread Nils Bruin
Good news! The change for including the Py_TPFLAGS_HAVE_VERSION_TAG for cython types by default is trivial and will likely make it into cython 0.19. See: https://groups.google.com/group/cython-users/browse_thread/thread/5110f344ea2e6e86?hl=en To see what kind of effect we can expect in sage I

Re: [sage-devel] Re: Does cython have to be slow for attribute lookup in deep MRO?

2013-04-07 Thread Julien Puydt
Le 07/04/2013 22:43, Nils Bruin a écrit : We should upgrade to Cython 0.19 as soon as it's out. Or if someone feels like it, we can already patch the cython in sage. Both sound good. Congrats for your success ; and congrats for also pushing it upstream instead of letting it bitrot in sage!

[sage-devel] Re: Does cython have to be slow for attribute lookup in deep MRO?

2013-04-06 Thread Nils Bruin
Yay! with a little digging around I think I know what feature cython- derived classes are missing that pure python classes do have: It's the Py_TPFLAGS_VALID_VERSION_TAG feature, which gets used in the method cache. in _PyType_Lookup (python source: typeobject.c) Evidence obtained with the