~/talk

Measure, don't Guess - How to find out if and where to optimize

Talkat PyData Berlin 2015 · 2015-05-29..05-30· [python, web-performance]
links:none on file
slides:none on file

The claim is: measure before you change anything and use real experiments to decide where to spend time. Examples, scripts and notebooks use cProfile, line_profiler, memory_profiler and SnakeViz (plus the pyStones benchmark) to produce concrete numbers — e.g. ~71k pyStones, a sleep example showing ~0.1s CPU vs 10s wall time, and list append behavior where 10M appends produce only ~104 allocations. The material includes reusable decorators and visualizers (sunburst/icicle) that work but require careful timer and OS-aware interpretation.

AI-written summary · about

  1. 0:00Introduction
  2. 10:25Optimization in Python
  3. 28:54Python performance with pybench
  4. 31:29CPU profiling with cProfile
  5. 54:23Wall clock vs CPU time
  6. 1:02:34Visualizing profiling results
  7. 1:17:55Line-by-line profiling
  8. 1:29:12Memory profiling with pympler
  9. 1:47:55Memory growth patterns
  10. 2:08:03Python performance anti-patterns
  11. 2:24:17Optimization strategies
  12. 2:32:00Q&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.