~/talk

Profiling Your Code: 5 Tips to Significantly Boost Performance

slides:none on file

Adds a Go pprof endpoint to collect CPU, heap, block and contention profiles from production workloads, runs profiles on real traffic, and iterates: find the single biggest hotspot, fix it, profile again. Concrete fixes include zero-copy JSON and preallocated slices, stack-allocated buffers with pooled megabuffers, clearing maps instead of reallocating, multiple-size buffer pools, a reverse-index map for O(1) lookups, and string interning and bitsets to cut memory and GC pressure.

AI-written summary · about

  1. 0:00Profiling introduction
  2. 2:29Why optimize fails
  3. 3:11Profiling data in Go
  4. 4:15Memory optimization in Go
  5. 8:31Data structure choices
  6. 10:59Micro-optimizations
  7. 16:39Log database lessons
  8. 17:21Applying profiling
~/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.