Why nested loops are so slow in Python? Is it because new contexts are created? For more details, see http://stackoverflow.com/questions/26611043/numpy-vs-cython-nested-loop-so-slow http://stackoverflow.com/questions/39371021/efficient-loop-over-numpy-array Thanks!