~/talk

Practical Profiling

Talkat PyCon Australia 2014 · 2014-08-01..08-05· [python]
slides:none on file

Demonstrates concrete tools and results: use cProfile to write result.profile files, load them with pstats.Stats and sort by cumulative time, use memory_profiler and line_profiler for per-line memory/time. Shows a comprehension vs for-loop case that runs ~0.09s versus ~0.19s (roughly double). Argues for running profiles against integration tests, saving profile files and git SHAs so results are reproducible and comparable over time, and reports that few real projects actually store or track profiling outputs.

AI-written summary · about

  1. 0:00Intro
  2. 1:10Profiling
  3. 1:50Development
  4. 2:50Team Environment
  5. 3:20User Perspective
  6. 5:25The Tools
  7. 6:05Memory Profiler
  8. 7:00See Profile
  9. 9:20Implementation
  10. 12:10Search Results
  11. 13:20Snug
  12. 14:25One Laptop Per Child
  13. 14:55Katie Cross
  14. 16:20Canonical
  15. 17:30Code Speed
  16. 19:35Audience QA
~/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.