~/talk

Profiling for Performance

Talkat PyCon Canada 2012 · 2012-11-09..11-11· [python, web-performance]
links:none on file
slides:none on file

Shows exactly how to find the real bottlenecks: run cProfile -o on a scripted workload, open the dump in RunSnakeRun or SnakeViz to see call trees, and use line_profiler to pin the hot line. Demonstrates common surprises (time.sleep or I/O eating half the runtime, millions of tiny calls causing O(n^2) blowups), warns that caches and logging often slow more than they help, and recommends coldshot-style low-overhead traces for microsecond-sensitive code.

AI-written summary · about

  1. 0:00Intro
  2. 0:24What is Profiling
  3. 1:27Why profile
  4. 5:22Profiling in Python
  5. 7:59Cumulative Time
  6. 9:56Algorithms
  7. 25:15Snake Run
~/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.