Hello, being unable to acquire the Trac account (Robert Bradshaw's email is not listed on his site), I write here. The issue was described here: http://trac.cython.org/ticket/847 but was, however, misidentified. The wrapper for a function which receives "fused slice" (D[:]) arguments automatically includes the following code: > cdef type ndarray > try: > import numpy > ndarray = numpy.ndarray > except (ImportError, AttributeError, TypeError): > ndarray = None (Compiler/FusedNode.py:468). When numpy is not installed, each import tries to search for it in the system path. (When it is, it's just cached). This severely degrades the performance.
_______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel