~/talk

The Four Musketeers: python, cython, numba and taichi — Speeding Up Code Without Losing Your Mind

TalkinRussianat PyCon Weekend 2022 · 2022-03-25..03-26· [python]
links:none on file
slides:none on file

A comparison of four ways to speed Python numeric code: Cython, Numba, NumPy and Taichi, plus a motion-vector tracker on Raspberry Pi to avoid heavy detectors. Benchmarks on Mandelbrot show pure Python in seconds, NumPy ~800 ms, Cython ~124 ms (down to ~40 ms with typing+parallelism), Numba JIT ~126 ms (also ~40 ms with parallel options), and Taichi on GPU ~1 ms (~13 ms on CPU). The talk highlights trade-offs between developer effort/readability and raw performance, and how each approach scales differently.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49Performance challenge
  3. 7:10Optimizing Mandelbrot
  4. 11:04Python vs Cython
  5. 13:15Cython basics
  6. 17:27Numba for speed
  7. 20:42Taichi intro
  8. 23:57Taichi kernel setup
  9. 26:30Performance comparison
  10. 29:57Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.