~/talk

Supercharge Scientific Computing in Python with Numba

Talkat PyData Global 2020 · 2020-11-11..11-15· [python]
links:none on file
slides:none on file

Numba JIT compiles a subset of Python and NumPy into machine code and shows concrete wins: a 500×500 Mandelbrot goes from ~7 s to <1 s to <100 ms after applying the njit decorator and the parallel option with prange, a diffusion PDE loop runs ~12 s in pure Python, vectorizing yields ~200× speedup but hurts readability, while the stencil decorator gives >700×, and an open source blurhash port reports 33–63× encode and 34–70× decode speedups with ~20× on Raspberry Pi.

AI-written summary · about

  1. 0:00Numba introduction
  2. 3:14What Numba is
  3. 5:20Mandelbrot set example
  4. 8:49Numba options for performance
  5. 10:50Numba with NumPy arrays
  6. 12:57Vectorizing functions with ufuncs
  7. 14:20Diffusion equation efficiently
  8. 17:32When to use Numba
  9. 18:13Real-world Numba project
  10. 20:42Numba on edge devices
  11. 21:13Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.