|
|
|
|
|
by Derbasti
4319 days ago
|
|
I have used CFFI in a few projects for writing a core computation in actual, pure C, and dynamically calling it from Python. Performance is really great, I vastly prefer it over Cython. But, it doesn't solve the vectorization problem. Often times, you have to transform simple iterative algorithms to a convoluted vectorized mess if you want to have decent performance. Not every procedure is easily expressed as matrix multiplication. This is a very real cognitive tax of the vectorized approach. Thank you for your writeup! |
|
What is the vectorization problem? Both Cython and Julia allow you to write tight loops and have them perform well.