Overview
Teaching: 2 min Exercises: 0 minQuestions
What have we learned?
Objectives
Recognize situations where using Cython/Numba is a good idea
Recognize the pros and cons of using each of these
One big disadvantage of using Cython/Numba is that it makes handling and debugging errors harder. This is also sometimes the case with Dask. That is because the tracebacks that you get when things go wrong will be much harder to decipher.
This means that code has to be thoroughly tested before it is converted to a compiled version.
Key Points
Python can be slow in some conditions
Cython an Numba can give substantial performance boosts in some of these
There are use-cases in which one of these is better than the other
Use them judiciously, to make your code faster