Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #28737 [DependencyInjection] Optimize exporting variables (Sand…
…er van der Vlugt) This PR was squashed before being merged into the 4.2-dev branch (closes #28737). Discussion ---------- [DependencyInjection] Optimize exporting variables | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28292 | License | MIT Store previously resolved variables so that the relatively expensive function [resolveEnvPlaceholders](https://github.com/symfony/symfony/blob/3e7b029524bf724abfd603c17795af39bb289615/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php#L1776) is not called unnecessarily. The effect on running ```bin/console``` with an empty cache in a big application (200+ env variables) in seconds: | Before | After | |------------|------------| | 24.1 | 15.8 | | 24.5 | 16.0 | | 24.7 | 16.3 | | 24.2 | 16.0 | | Avg: 24.4 | Avg:16.0 | Commits ------- 768de2f [DependencyInjection] Optimize exporting variables
- Loading branch information