~/talk

Experiences making CPU-bound tasks run much faster

Talkat EuroPython 2011 · 2011-06-20..06-26· [python]
slides:none on file

Profiling with cProfile and line_profiler finds hot loops, then applied PyPy, NumPy vectorization, numexpr, C extensions and GPU kernels to the hot spots. One workflow shrinks a 234 s job to ~90 s then ~81 s and finally ~12 s after adding C code; another case goes 35 s (pure Python) → 10 s (PyPy) → 36 s (NumPy) → 19 s (numexpr) → 0.6 s (C) → 0.47 s (Shed Skin) → 0.07 s on a GTX-class CUDA GPU.

AI-written summary · about

  1. 0:00Intro
  2. 0:21Goals
  3. 0:44Resources
  4. 1:40About me
  5. 2:43What we are using
  6. 7:34Benchmarks
  7. 9:45Physics
  8. 13:35Slow implementation
  9. 20:15Line profiling
~/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.