~/talk

Triangulating Python Performance Issues with SCALENE

Talkat OSDI 2023 · 2023-07-10..07-12· [python, developer-experience]
name:Sam Stern
links:none on file
links:none on file
slides:none on file

Scalene is a low‑overhead profiler that simultaneously measures CPU, memory, and GPU usage and distinguishes Python vs native time by using virtual‑time deltas to attribute delays to C code; it introduces threshold‑based sampling for memory (sampling on megabyte deltas) to avoid the 300× slowdown of tracer profilers. It reports a new metric, copy volume, pinpoints numpy-induced copies (example: removing np.array cuts runtime 30s→23s and memory ~3GB→1.6GB), helped Semantic Scholar cut costs 92%, and supports LLM-driven code suggestions via OpenAI.

AI-written summary · about

  1. 0:00Introduction to Python
  2. 0:34The problem of bloat
  3. 2:06Python's inefficiency
  4. 3:06Performance challenges
  5. 4:28Introducing Scalene
  6. 5:55Analyzing program metrics
  7. 7:14Optimization examples
  8. 8:23Profiling overhead
  9. 9:40Native vs Python time
  10. 12:14Low-overhead sampling
  11. 13:33AI-powered optimization
~/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.