On Jan 7, 2010, at 6:49 AM, Sturla Molden wrote: > >> would emit a direct call to the ..._small_method(self, x) C >> function in >> big_method(), instead of passing through self->__pyx_vtab- >> >small_method. > > Or just declare self->__pyx_vtab->small_method a const pointer, so > the C > compiler knows it does not change.
That might help, but I don't think either of these indirections could be resolved at compile time, even if the latter could be declared const. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
