title: Windows 7 php + Symfony2 terribly slow
body: <p>This is an issue I've been having for a long time. I want to run PHP applications on my windows computer and it has a terribly high load time, around 10-25 seconds. I have tried many things:</p>
  
  <ul>
  <li>First I tried a simple XAMPP installation</li>
  <li>I read WAMP might be faster, so I tried WAMP, too. It gave me the same results</li>
  <li>Then I installed an nginx server with PHP, but it did not help either</li>
  <li>Finally, I installed an Ubuntu 11.10 in VirtualBox and I shared my windows files containing my project, but the result was even worse: over 22 second load time each time.</li>
  </ul>
  
  <p><strong>UPDATE</strong>: I have even tried APC - it improved a bit but still 6-8 sec/page</p>
  
  <p>I uploaded my files to a linux server(shared hosting), on which it runs in around 300-500 ms. On the XAMPP installation I tried to run other (i.e. not Symfony2) applications as well(e.g. phpmyadmin), which too were slower than on the shared hosting, but not extremely slow, with 2-3 sec load time. Until I change to Linux as the main OS, how could I improve performance? I have a laptop with i7 CPU, 4 GB RAM, 5400RPM HDD, Win7 x64.</p>
  
  <p>Thank you for your help!</p>
  
  <p><strong>UPDATE2:</strong> For some mysterious reason my Symfony routing didn't work with fcgid (it gave me a 404 error for everything) so I went back for using PHP as a module. Now, it has become the worst ever (worse than it used to be as a module): app mode 20-25 sec, and in dev mode, over 30s every time, so I get a timeout error, and it's the same with or without APC enabled.</p>
  
  <p><a href="http://frankdavid.hu/files/performance_log.html" rel="noreferrer">Here</a> you can see this error. This is reproduceable: each time it reaches a different point of execution within 30s:</p>
  
  <p><a href="https://i.imgur.com/JwNYH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iFMaY.png" alt="enter image description here"></a></p>