~/talk

Performance optimization: how do I go about it?

Talkat Laracon EU 2019 · 2019-08-28..08-30· [web-performance, php]
links:none on file
slides:none on file

Covers concrete tools and outcomes: Xdebug and XHProf for profiling, QCacheGrind to inspect call maps, PHP meminfo to dump heap contents, and the new-ish pspy for low-overhead production sampling; warns that APMs (Blackfire Datadog New Relic) are paid but useful. Demonstrates a real case where an inefficient array_map with a bogus Pi calculator makes a run go 3 seconds to 1 second after removal, shows Xdebug is too slow for prod, and finds a parser object retained by globals causing a leak; fixes actually reduce memory and latency.

AI-written summary · about

  1. 0:00Start
  2. 0:46Planning
  3. 1:45Why We Should Care about Performance
  4. 4:58Execution Time and Memory Usage
  5. 8:56Time Outs
  6. 11:52Micro Optimizations
  7. 12:49Php Benchmarks
  8. 13:57Tools
  9. 14:13Monitoring Tools
  10. 14:57Load Testing and Benchmarking Tools
  11. 17:38How Does the Tooling Landscape Look in Php
  12. 18:26How You Install Extensions in Php
  13. 21:29Diagnostics
  14. 23:07Capture the Baseline
  15. 23:21Set Up Exit Proof
  16. 26:14The Cali Map
  17. 27:03Debugging Closures
  18. 33:12How Do You Check if Your Program Is Not Leaking Memory
  19. 34:15Reproduce a Memory Leak in Php 7
  20. 37:04A Memory Leak
  21. 38:41Cold Thin Graphs
  22. 39:27Flame Graphs
  23. 40:50Stack Traces
  24. 41:58Flame Graph Generation Algorithm
  25. 46:25Key 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.