~/talk

Performance optimisation: how do I go about it?

Talkat PHP UK Conference 2018 · 2018-02-14..02-16· [php]
name:Kat Zień
github:katzien
slides:none on file

A simple PHP app called cigar gets profiled with xdebug, xhprof and benchmarking (ApacheBench / wrk) to find the real bottlenecks, not micro‑tips. Profiling with qcachegrind plus meminfo exposes a slow parse/closure and unnecessary PI work, cutting runtime from ~3.0s to ~0.3s and halving memory by switching file access and removing retained parser objects. Micro‑optimisations (quotes, ===) save milliseconds; evidence and tooling drive changes.

AI-written summary · about

  1. 0:00Start
  2. 12:24MICRO OPTIMISATIONS
  3. 17:20TOOLS FOR PHP
  4. 18:14INSTALLING EXTENSIONS YMMV
  5. 20:05INSTALL A PROFILER
  6. 24:34BASELINE FIRST
~/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.