3 ms·
You should look at numba. In some special cases, you can actually write for loops in pure python that are faster than C loops.
by devxpy 6y ago
You should look at numba. In some special cases, you can actually write for loops in pure python that are faster than C loops.
- JesseMeyer 6y agoAre you referring to Numba's ability to offload certain loops into a GPU kernel? Otherwise, Clang has access to the same optimizations that Numba has as they both share LLVM as their optimizing compiler. Beyond that, I think a fairer comparison is C w/ OpenMP vs Numba for parallel processing if syntactic brevity is the metric.