No more slow requests
summary
Diagnoses are concrete: excess database queries (N+1), blocking outgoing HTTP calls, tasks that weren’t queued, and expensive PHP serialization. Fixes are explicit: enable OPcache (example: 300ms down to 90ms), add PHP Artisan Optimize to deployment, eager-load only when needed not via model $with, use pluck for huge lists to save memory, and prevent lazy loading. Profiling uses SPX via Herd profiler to surface repeated curl calls. Mentions of Tinkerwell, Expose and Herd indicate production tools that exist and work.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:03Talk overview
- 3:13Slow Laravel apps causes
- 5:19Optimizing with Artisan
- 7:49Queues for emails
- 9:17PHP speed with OPcache
- 11:44Demo setup
- 13:10Fixing N+1 queries
- 16:21Lazy loading in games
- 18:11Dashboard optimizations
- 21:25Debugging API responses
- 23:12Profiling with SPX
- 26:20Profiling CLI with Herd
- 28:07Summary
- 28:39Q&A
related talks
39mPHP Performance Demystified - Measure, Understand, Optimise
50mPerformance optimization: how do I go about it?
52mPerformance optimisation: how do I go about it?
54mBottleneck Analysis
35mPHP: Performance and application development — what we diagnosed
01h 03mMaximising Performance With Zend Framework
01h 12m25 Years of PHP
30mTim Macdonald :: Thoughtful Performance
