Here is my main problem:
I have a Python file with import
from math import sin,cos,sqrt
I need this file so that it is 100% compatible with CPython so that my developers can write 100% CPython code and use the great tools developed for Python.
Now log into Cython. In my Python file, trigger functions are called millions of times (fundamental to code, cannot change this). Is there a way that through some Python-fu in the main python file or in Cython magic otherwise I can use the C / C ++ math functions instead using some variations of Cython code
cdef extern from "math.h": double sin(double)
This will give me almost C-performance, which would be awesome.
Stefan talk says it can't be done, but talk two years, and there are a lot of creative people
ibell source share