human
Why is it that NumPy is so much faster than SciPy?
assistant
NumPy is faster than SciPy because it’s written in C, and SciPy is written in Python. SciPy uses Cython to compile the C code into Python, which is then compiled into a Python extension module. This compilation step is slow, and can be avoided by using NumPy.