~/talk

Making your code faster: Cython and parallel processing in the Jupyter Notebook

Talkat PyData DC 2016 · 2016-10-07..10-09· [python]
links:none on file
slides:none on file

Benchmarks run inside a Jupyter Notebook compare plain Python, NumPy, Cython, SciPy integrators, Numba and IPyParallel on an Euler approximation of y=x² over a million points. Plain Python takes ~10 s, Cython ~6 s, NumPy about ~3.5 s, SciPy ~9.7 s, while Numba 471 ms cuts runtime by an order of magnitude. IPyParallel halves some runs to ~5.8 s and combining IPyParallel with Numba yields ~1.2 s, showing which tools and numbers actually move the needle.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49Problem statement
  3. 5:40Jupyter Notebook demo setup
  4. 8:27Baseline Python performance
  5. 9:10Cython optimization in Jupyter
  6. 12:24NumPy arrays for speed
  7. 15:56Differential equations with SciPy
  8. 21:37Numba introduction
  9. 24:30Numba for Euler method
  10. 27:25Parallel processing with IPython
  11. 30:18Task distribution across cores
  12. 36:23Numba + parallel processing
  13. 37:27Recommendations
~/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.