Web performance consultant for Symfony
Optimize web performance on Symfony applications
Symfony powers the most demanding PHP applications — e-commerce, media, fintech. Its power pays in performance if Doctrine, Twig and HTTP cache aren't framed. I work across the whole stack to deliver stable TTFB and green Core Web Vitals.
They trust me
Symfony symptoms calling for an audit
Symfony shows characteristic bottlenecks on Doctrine, bootstrap, and lack of disciplined HTTP caching.
🔁 TTFB drifting on listings and rich templates
Doctrine N+1 or inadequate object hydration on listings. Moving to array hydration or scalar queries for listings drops memory consumption 70% and TTFB 40%.
💾 Doctrine Result Cache unused
Stable references (categories, taxonomies, configurations) re-queried on every page. Doctrine second-level cache (via Redis or APCu) serves them from memory — systematic TTFB gain.
🐢 Heavy Symfony bootstrap in production
Without assets:install --symlink, without cache:clear --env=prod, without DI container dump, Symfony rebootstraps every request. composer install --optimize-autoloader --no-dev is mandatory.
📡 No HTTP cache nor frontal Varnish
Cacheable public pages (catalogs, articles, SEO pages) regenerate every visit. Set up Symfony HttpCache or Varnish + ESI on dynamic fragments (user header, cart). Perceived TTFB collapses.
⚙️ PHP 7.x or misconfigured opcache
PHP 8.x + opcache + JIT divides Symfony execution time by 2 to 4. PHP upgrade and proper activation (opcache.memory_consumption, opcache.max_accelerated_files) are the most cost-effective gains.
🚀 Traffic climbing but latency drifting
Without FrankenPHP or RoadRunner in worker mode, Symfony bootstraps every request. Worker mode drops TTFB 50 to 150ms for free. Evaluate when bootstrap weighs more than business logic.
Symfony optimization methodology
4 steps to transform your performance
1. Blackfire or Symfony Profiler profiling
Identify Doctrine N+1, slow Twig templates, heavy services to instantiate. Map LCP-critical endpoints.
2. Doctrine optimization
Explicit eager loading, array hydration on listings, scalar queries for exports, second-level cache on stable references, missing SQL indexes.
3. HTTP cache and Twig cache
Set up Symfony HttpCache or frontal Varnish, ESI on dynamic fragments, disciplined Cache-Control headers, pre-compiled Twig cache in production.
4. Worker mode where relevant
FrankenPHP or RoadRunner evaluation based on traffic profile. Cautious migration with singleton and shared memory testing.
1. Blackfire or Symfony Profiler profiling
Identify Doctrine N+1, slow Twig templates, heavy services to instantiate. Map LCP-critical endpoints.
2. Doctrine optimization
Explicit eager loading, array hydration on listings, scalar queries for exports, second-level cache on stable references, missing SQL indexes.
3. HTTP cache and Twig cache
Set up Symfony HttpCache or frontal Varnish, ESI on dynamic fragments, disciplined Cache-Control headers, pre-compiled Twig cache in production.
4. Worker mode where relevant
FrankenPHP or RoadRunner evaluation based on traffic profile. Cautious migration with singleton and shared memory testing.
Mission commitments
Frequently asked questions
Symfony Profiler or Blackfire in production?
Is Doctrine intrinsically slow?
FrankenPHP, RoadRunner, Swoole: which for Symfony?
How are your Symfony engagements structured?
Drop your Symfony TTFB
Data 2023-2026
What my clients say
Excellent work.
Paul has significantly improved the site's speed and perfectly aligned it with Google's recommendations.
Professional, thorough, and efficient, I highly recommend.
Nicolas - April Moto
Digital & E-commerce Director
We are very satisfied with Paul's work. He is quick, available, and particularly effective. Since his arrival, very good results have been observed, both in terms of performance and responsiveness. A real asset for our team.
Léo - Luxury brand
E-commerce Product Owner
I don't know if we've said it enough.
But if you want to improve your loading speed,
Make Google happy and get your Core Web Vitals in the green,
Contact Paul Delcloy.
Florian Darroman - Les Makers
Co-founder
Symfony, power and complexity to tame
Symfony is the PHP framework for complex and long-term applications. Doctrine ORM, EventDispatcher, Messenger, Twig, HTTP Foundation: a mature ecosystem letting you model any business domain. That power also opens performance debt angles that quickly accumulate on aging or under-framed projects.
The web performance optimization angle on Symfony is multi-layer: profiling via WebProfilerBundle or Blackfire, Doctrine optimization (N+1, hydration mode, second-level cache), Twig cache and OPcache, HTTP cache via Symfony Cache Component, and FrankenPHP or Roadrunner activation on modern apps.
Doctrine, first performance work-stream
Doctrine is Symfony's reference ORM, and also its first source of performance cost. N+1, overly-costly object hydration, inadequate eager fetches, lazy-loaded Collections inside loops: each pattern multiplies queries or memory allocations.
Blackfire or Symfony Profiler diagnosis exposes these patterns immediately. Refactoring (explicit eager loading, array hydration on lists, scalar queries for exports, Doctrine Result Cache on stable references) drops TTFB by 40 to 70% on affected pages.
HTTP cache and ESI for dynamic pages
Symfony excels at HTTP caching via the Symfony Cache Component (integrated Reverse Proxy or frontal Varnish). Paired with ESI (Edge Side Includes), it allows caching entire pages while keeping dynamic fragments (cart, user info) fresh.
This architecture is powerful but demands modeling discipline: coherent cache headers, properly scoped ESI tags, invalidation planned at design time. That's what separates fast Symfony apps from sophisticated-but-slow ones. On Sylius e-commerce projects, it's one of the structural levers of a webperf intervention.
Other expertise Technologies
Angular
Angular optimized: lazy modules, OnPush change detection, SSR Universal or Analog, signals, zone.js elimination. Stable Core Web Vitals on enterprise SPAs.
Learn moreAstro
Astro optimized: islands architecture, image optimization, view transitions, content collections. Near-static sites with green Core Web Vitals.
Learn moreDrupal
Drupal optimized: Render API and cache contexts, Dynamic Page Cache + BigPipe, Views performance, MySQL tuning. Core Web Vitals green on strategic templates.
Learn more