symfony/symfony — Issue #2568: performance issue with router collector
Author: craue
Created: 2011-11-05 15:18:58+00:00
State: open

The router collector added with 8cc3158d8901b8aefadde7f24be92fd9ed2b07e7 causes a significant slowdown. While loading a page took 237 ms prior to that commit, it now takes 513 ms. Although it only affects the dev environment by default, having to wait that much longer on each page load is annoying. For now, I just _disabled_ it by adding

```
services:
data_collector.router:
class: %data_collector.router.class%
public: false
```

to my `config_dev.yml`. But there should be a way to configure whether specific collectors will be enabled or not, maybe even disabling the router collector by default.