小编Ong*_*ong的帖子

numpy faster than numba and cython , how to improve numba code

I have a simple example here to help me understand using numba and cython. I am `new to both numba and cython. I've tried my best with to incorporate all the tricks to make numba fast and to some extent, the same for cython but my numpy code is almost 2x faster than numba (for float64), more than 2x faster if using float32. Not sure what I am missing here.

I was thinking perhaps the problem isn't coding anymore but …

python performance numpy cython numba

5
推荐指数
3
解决办法
385
查看次数

标签 统计

cython ×1

numba ×1

numpy ×1

performance ×1

python ×1