DEV Community

loading...

Discussion on: Loops in Python – comparison, and performance

Collapse
msat59 profile image
msat59

Numpy code you tried is vectorized so it runs faster. You could also try cython or numba to check the improvement in execution time.