Acceleration of the simple mathematical algorithm of Fibonacci numbers with Numba and Cython. Detailed comparison of the optimisations with these libraries.
How to accelerate Python code 10x-15x times with simple Numba decorators and 20x-40x with C-style code in Cython.
Fibonacci algorithm:
http://mycoding.uk/a/python__fibonacc...
Python vs Numba vs Cython:
http://mycoding.uk/a/how_to_accelerat...
Video chapters:
0:00 - Fibonacci algorithm in Python
1:27 - Numba algorithm
2:21 - Cython algorithm
4:25 - Variable type warning
#pythoncoding #cython #optimization