schmittjoh / JMSDiExtraBundle

Provides Advanced Dependency Injection Features for Symfony2
http://jmsyst.com/bundles/JMSDiExtraBundle
330 stars 130 forks source link

Suggestion: warmer OFF for dev #217

Open phackwer opened 9 years ago

phackwer commented 9 years ago

I've been experiencing a lot of delay on processing while developing using the JMSDIExtraBundle. Figured out that this is due the Controller Injector Warmer being always scanning ALL the code and creating a log of warmer.

This is pretty complicated since I have to clear my cache almost every 30 minutes and have a delay that takes almost a minute to recreate ALL the cache. But I don't need ALL the cache when in dev. I need to cache only what I'm using. So, I tried, as an experiment, to remove the service and voilá! Itworked like a charm for dev.

Service should only be used for production environment, to keep a good dev performance.

Obs: I'm using a Macbook Pro i7 with 8Gb and 250 SSD, and still it runs slow due the number of controllers and size of my project.

jontorrado commented 7 years ago

Same happens to me. How did you remove the service?