Skip to content

Topic

Lazy loading

A design pattern that defers creating or initializing an object until it is first used, commonly applied to ORM entities and dependency injection services.

Current clusters

build1 publisher

Symfony 8 swaps generated DI proxies for PHP 8.4's native lazy objects

Symfony 8 creates its container services as PHP 8.4 native lazy objects, cutting boot time 15-25% for apps with 200+ services, according to a dev.to post. The gain comes from retiring generated proxy classes, so it depends on how much boot time those classes cost you.

Publishers:dev.to

Reality

Evidence30
Adoption
Insufficient
Hype gap+35
Incentives
Insufficient
Confidence35