3 ms·
It usually does work on individual small functions, in my experience. I've seen 2x improvement on string processing code (cleaning text for input to a ML model
by nerdponx 5y ago
It usually does work on individual small functions, in my experience.
I've seen 2x improvement on string processing code (cleaning text for input to a ML model) by doing nothing other than sticking `%%cython` at the top of a notebook cell.
I don't know if this technique scales to other applications; probably not. But Cython syntactically is a superset of Python.