~/talk

Practical Clojure Profiling in Production

Talkat Clojure/west 2017 · 2017-03-30..03-31· [clojure]
links:none on file
slides:none on file

A consolidated API endpoint initially becomes 30–180 seconds slow on cache misses; profiling with YourKit and JVisualVM identifies a hot path where transfer detection spends most time in lazy sequences. Performance gains come from separating debits and credits, sorting by amount, and reducing search space; microchanges (typing to avoid reflection, forcing evaluation) remove surprises from lazy seqs. Criterium benchmarks show about a 5–6 second improvement on the problematic cases, and New Relic with clj-newrelic provides ongoing monitoring.

AI-written summary · about

  1. 0:00Intro
  2. 0:40Why is your app slow
  3. 2:00Example of profiling
  4. 2:40Measure twice code
  5. 4:38JVisual VM
  6. 5:04Function Profiling
  7. 5:39Filtering Profiling
  8. 8:13Why Profiling
  9. 12:44Getchas
  10. 14:19Type in
  11. 16:55Possible solutions
  12. 17:44Document performance
  13. 18:30Criterium
  14. 20:07New Relic
  15. 21:22Web UI
  16. 21:46clj
  17. 22:21flame graphs
~/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.