Symfony on Xampp is very slow in development, what can I do?
A few quick suggestions:
- install PHP 5.5.x (faster)
- Use
mod_fcgid
instead ofmod_php
with Apache - Raise
realpath_cache_size
andrealpath_cache_ttl
in your php.ini - disable XDebug
- ...
See this question, this question and this question.
Something is not right on your system. 40 seconds is way too long. Even in dev mode, your pages should be showing within a second or two.
Someone else has had similar problems here: Windows 7 php + Symfony2 terribly slow