31 May 2012 16:04
[Cython] SEP 201 draft: Native callable objects
[Discussion on numfocus@... please] I've uploaded a draft-state SEP 201 (previously CEP 1000): https://github.com/numfocus/sep/blob/master/sep201.rst """ Many callable objects are simply wrappers around native code. This holds for any Cython function, f2py functions, manually written CPython extensions, Numba, etc. Obviously, when native code calls other native code, it would be nice to skip the significant cost of boxing and unboxing all the arguments. """ The thread about this on the Cython list is almost endless: http://thread.gmane.org/gmane.comp.python.cython.devel/13416/focus=13443 There was a long discussion on the key-comparison vs. interned-string approach. I've written both up in SEP 201 since it was the major point of contention. There was some benchmarks starting here: http://thread.gmane.org/gmane.comp.python.cython.devel/13416/focus=13443 And why provide a table and not a get_function_pointer starting here: http://thread.gmane.org/gmane.comp.python.cython.devel/13416/focus=13443 For those who followed that and don't want to read the entire spec, the(Continue reading)
RSS Feed