Make Python code 1000x Faster with Numba

Опубликовано: 28 Декабрь 2019
на канале: Jack of Some
445,194
15k

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: https://gist.github.com/safijari/fa4e...

MY OTHER VIDOES:
○ A.I. Learns to play Snake    • Neural Network Learns to Play Snake u...  
○ 5 Common Python Mistakes:    • 5 Things You're Doing Wrong When Prog...  
○ 5 Amazing Python Libraries:    • Five Amazing Python Libraries you sho...  
○ Making Python fast:    • Can VSCode be a reasonable Spacemacs ...  
○ Learning programming language Julia:    • How to learn Julia, a new programming...  

Deeper topics to discover here
https://numba.pydata.org/numba-doc/de...

Supported python and numpy features
https://numba.pydata.org/numba-doc/de...
https://numba.pydata.org/numba-doc/de...

Important differences from python https://numba.pydata.org/numba-doc/de...

Defining types to compile at definition time: http://numba.pydata.org/numba-doc/lat...

Function factories https://numba.pydata.org/numba-doc/de...

Experimental version of jitted classes https://numba.pydata.org/numba-doc/de...

Debugging https://numba.pydata.org/numba-doc/de...

Dealing with types https://numba.pydata.org/numba-doc/de...

Ahead of time compilation for deployment https://numba.pydata.org/numba-doc/de...

Using approximate fastmath https://numba.pydata.org/numba-doc/de...

Deeper control of threading via tbb and/or omp https://numba.pydata.org/numba-doc/de...

Easily put your computation on a GPU!
https://numba.pydata.org/numba-doc/de...
https://numba.pydata.org/numba-doc/de...

F.A.Qs https://numba.pydata.org/numba-doc/de...

#numba #programming #python