The cause of this for me was that the project was located on a network drive. I moved the project to the C: drive and everything ran without any delay.
If the project is located on a network drive, try moving it to your local C: drive and try it again.
The performance increase is much more than you would expect from just network speed. I guess VS is continually accessing the files when debugging an ASP.NET MVC application. I was using VS 2017, ASP.NET MVC debugging on IIS Express and this worked for me.
I hope this helps.