Running Symfony2 app on Vagrant without NFS below 100ms

9 December 2014

This post explains how to configure Symfony2/Vagrant to get the response time below 100 ms. And how to do it without NFS! This is, in my opinion, the best way to run Windows/Vagrant/Symfony2 combination.

1. Background

If you try to run Symfony2 application within Vagrant box on Windows you will, most probably, get page load time quite close to 5 or 10 seconds. Which, of course, is unbearable.

This is the starting point:

The task is: how to configure development machine to minimize the page load time?

That’s really important for me, as the greater part of young developers I educate use Windows.

2. The solution

My solution is very simple: move vendor/ outside shared project’s folder.

Yes, as simple as that.

To do this, you need two simple changes:

Fork me on GitHub