~/talk

Performance Python: Seven Strategies for Optimizing Your Numerical Code

Talkat PyCon 2018 · on Friday, 2018-05-11· [python]

Seven concrete tactics for speeding numerical Python with a K‑means case study line profiling shows label computation takes 93% of time and vectorizing with NumPy vectorization flips hotspots so runtime goes 7.4s down to 0.13s; specialized structures (KD‑tree, Pandas groupby) shave another 30% Cython and Numba compile hotspots to milliseconds (Cython ~100ms → ~2ms Numba ~100ms → ~1.5ms) Dask enables out‑of‑core and distributed runs but adds overhead and scikit‑learn gives a robust ready‑made K‑means.

AI-written summary · about

  1. 0:00Start
  2. 1:51Example K-means Clustering
  3. 15:41Parallel Computation
  4. 18:56Seven Strategies
~/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.