Closed
Description
Sometimes parameters can be large (long text, auto-generated maps, etc.) and we've noticed some performance impact because of inlining (the same parameter was injected in several services).
Does it make sense to introduce some kind of inlining strategy for PhpDumper
? For instance, if value is larger than 1 KB, then do not inline parameter (i.e. use $this->getParameter('large_parameter')
method call) in PhpDumper::dumpParameter
. This also means that ResolveParameterPlaceHoldersPass
should not resolve arguments.