In this video I introduce Numba which can make your python code 1000x faster. Numba is a just in time compiler for a subset of Python and Numpy. The first half of the video is dedicated to a basic intro and to highlighting a number of very common mistakes people make when using Numba. The remaining video show how to use Numba in a real world-ish simulation problem and shows the code running 1000x faster with Numba in both single and multithreaded cases, and concludes with a "reading list" for learning more about Numba.
Twitter: / safijari
Find the notebook here: gist.github.com/safijari/fa4e...
MY OTHER VIDOES:
○ A.I. Learns to play Snake • Neural Network Learns ...
○ 5 Common Python Mistakes: • 5 Things You're Doing ...
○ 5 Amazing Python Libraries: • Five Amazing Python Li...
○ Making Python fast: • Can VSCode be a reason...
○ Learning programming language Julia: • How to learn Julia, a ...
Deeper topics to discover here
numba.pydata.org/numba-doc/de...
Supported python and numpy features
numba.pydata.org/numba-doc/de...
numba.pydata.org/numba-doc/de...
Important differences from python numba.pydata.org/numba-doc/de...
Defining types to compile at definition time: numba.pydata.org/numba-doc/lat...
Function factories numba.pydata.org/numba-doc/de...
Experimental version of jitted classes numba.pydata.org/numba-doc/de...
Debugging numba.pydata.org/numba-doc/de...
Dealing with types numba.pydata.org/numba-doc/de...
Ahead of time compilation for deployment numba.pydata.org/numba-doc/de...
Using approximate fastmath numba.pydata.org/numba-doc/de...
Deeper control of threading via tbb and/or omp numba.pydata.org/numba-doc/de...
Easily put your computation on a GPU!
numba.pydata.org/numba-doc/de...
numba.pydata.org/numba-doc/de...
F.A.Qs numba.pydata.org/numba-doc/de...
#numba #programming #python
7 июн 2024