This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier 006dacd18d minor #29762 Improved performance of LoggerDataCollector (javiereguiluz)
This PR was squashed before being merged into the 4.3-dev branch (closes #29762).

Discussion
----------

Improved performance of LoggerDataCollector

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | -   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | -

My feeling is that Symfony's "dev" environment is more and more slow lately. After profiling the Symfony Demo app with Blackfire, I found that `getContainerCompilerLogs()` is one of the slowest methods.

Given that you rarely need or look at these "compiler logs", in this PR I propose to get them only when/if you really need them.

[The before/after profile comparison](https://blackfire.io/profiles/compare/4959d918-8e00-4cd7-9b0b-41919e73ae62/graph) confirms a nice performance improvement and thousands of functions no longer called.

Commits
-------

3b8d6d19ec Improved performance of LoggerDataCollector
2019-01-06 17:31:10 +01:00
..
Asset Merge branch '4.2' 2019-01-03 10:16:58 +01:00
BrowserKit Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Cache Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Config Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Console Merge branch '4.2' 2019-01-04 16:14:53 +01:00
CssSelector Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Debug feature #28902 [Debug] Detect virtual methods using @method (ro0NL) 2019-01-05 09:11:12 +01:00
DependencyInjection feature #29781 [DI] Add trim env processor (ogizanagi) 2019-01-06 17:27:17 +01:00
DomCrawler Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Dotenv Merge branch '4.2' 2019-01-03 10:16:58 +01:00
EventDispatcher Merge branch '4.2' 2019-01-05 17:38:08 +01:00
ExpressionLanguage Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Filesystem Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Finder Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Form Merge branch '4.2' 2019-01-05 17:38:08 +01:00
HttpFoundation Merge branch '4.2' 2019-01-05 17:38:08 +01:00
HttpKernel minor #29762 Improved performance of LoggerDataCollector (javiereguiluz) 2019-01-06 17:31:10 +01:00
Inflector Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Intl Merge branch '4.2' 2019-01-05 17:38:08 +01:00
Ldap Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Lock Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Messenger Merge branch '4.2' 2019-01-03 10:16:58 +01:00
OptionsResolver Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Process Merge branch '4.2' 2019-01-04 16:14:53 +01:00
PropertyAccess Merge branch '4.2' 2019-01-05 17:38:08 +01:00
PropertyInfo Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Routing Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Security Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Serializer Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Stopwatch Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Templating Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Translation Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Validator Merge branch '4.2' 2019-01-06 15:14:12 +01:00
VarDumper Merge branch '4.2' 2019-01-03 10:16:58 +01:00
VarExporter Merge branch '4.2' 2019-01-03 10:16:58 +01:00
WebLink Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Workflow Merge branch '4.2' 2019-01-03 10:16:58 +01:00
Yaml Merge branch '4.2' 2019-01-03 10:16:58 +01:00