[socal-piggies] cython and method dispatch

Dan Stromberg strombrg at gmail.com
Sun Jan 17 16:29:44 PST 2010


I do believe that cython at least has the ability to avoid recalculating 
what method to call over and over again, because the generated C code 
has lines like this peppered throughout:

    if (unlikely(__pyx_skip_dispatch)) ;

...right before the method dispatch stuff.

That fits my intuition, as method calls suddenly felt noticeably faster 
when I moved them from cpython to cython.





More information about the socal-piggies mailing list