Stefan Behnel added the comment:

Cython does that in general, sure. However, this ticket is about a specific 
case where string methods (which are implemented in C) are slow when called 
from Python. Antoine found out that the main overhead is not so much from the 
method lookup itself but from argument parsing inside of the function. The 
unpacking code that Cython generates for the equivalent Python signature would 
speed this up, while keeping or improving the compatibility with Python call 
semantics.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17170>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to