~/talk

Optimize Performance with Continuous Production Profiling

Talkat stackconf 2022 · 2022-07-19..07-20· [devops-and-delivery, observability]
slides:none on file

Shows that continuous production profiling with sampling and flame graphs finds real CPU sinks in live services. Uses gProfiler on Python Flask/SQLAlchemy workloads, adds caching to a query (python cache decorator) and drops container CPU from ~55% to ~50% — a >10% improvement measured under load. Also finds a logging remove-handle_ref hotspot (~3% per call) whose fix (avoid double list scan, use remove-with-except) goes upstream to Python 3.10.

AI-written summary · about

  1. 0:00Introduction to performance optimization
  2. 1:03Why optimize performance matters
  3. 3:13Why profiling is essential
  4. 5:46Continuous production profiling
  5. 9:16Flame graphs explained
  6. 12:16Live demo setup
  7. 14:08Identifying bottlenecks with flame graphs
  8. 18:55Measuring performance improvement
  9. 22:33Real-world optimization example
  10. 25:03Summary and takeaways
~/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.