perf: Add DI container caching for faster CLI startup - #1289
Conversation
e24f21a to
22ad429
Compare
22ad429 to
6fc45f3
Compare
6fc45f3 to
38b08dc
Compare
38b08dc to
cd5012c
Compare
cd5012c to
526e83a
Compare
526e83a to
a849ddd
Compare
3537ff4 to
cb41a8b
Compare
Cache the compiled Symfony DI container to /tmp/guides-container-cache/. On subsequent runs, loads pre-compiled PHP class instead of rebuilding the entire container (config parsing, service registration, compilation). Cache key includes vendor dir, working dir, extensions, and configs to ensure cache invalidation when configuration changes. See https://cybottm.github.io/render-guides/ for benchmark data.
cb41a8b to
bbbb261
Compare
|
Closing this: the cache is never written, so the change delivers no speedup at all. Independently of that, the read path |
Summary
Caches the compiled Symfony DI container to
/tmp/guides-container-cache/for faster CLI startup times.Changes
Performance Impact
Container compilation is skipped on subsequent runs, reducing startup time. Most beneficial for development workflows with frequent CLI invocations.
See Performance Analysis Report for detailed benchmarks.
Related PRs
All PRs can be merged independently in any order.