|
|
|
|
|
by steev
2345 days ago
|
|
> Typically straightforward Numpy gets me from 40x slower than straightforward C to 5x slower. I find this hard to believe. What kind of numerical work are you doing? Even something as simple as matrix-matrix multiplication should be hard to beat with C, unless your C code is using a cache efficient algorithm. |
|
People always say "use numpy", but that is only possible if your algorithm can be described in terms of vectorized operations. For many kinds of processing, the only alternative is C/C++ (through Cython)