8000 [DependencyInjection] Inlining of large parameters · Issue #15203 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DependencyInjection] Inlining of large parameters #15203
Closed
@unkind

Description

@unkind

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0