~/talk

How to use Dependency Injection & Services for unexpected performance gains

Talkat MidCamp 2023 · 2023-04-26..04-28· [drupal, web-performance]
links:none on file
slides:none on file

XHProf profiling identifies a single global access function costing ~50% of page time; switching from entity queries to direct DB queries saves ~15–20% but the big win is converting the logic into a service and storing its result as a property so the expensive computation runs once per request instead of ~100 times, yielding roughly a 60% site performance improvement. Tools: XHProf profiling, single-request cache via service property.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 2:13What are Services?
  3. 7:54Dependency Injection explained
  4. 13:42Overwriting services
  5. 18:49Performance bottleneck case study
  6. 28:33Single-request caching solution
  7. 31:48Training courses overview
  8. 36:13Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.