Same problem, have spent hours trying to fix and have tried many suggestions from various sources on Google. It is not usable for development on windows machine. Need to find out what is causing the bottleneck.
I don’t have a specific answer but here are a few things you all can try:
Restart the Local Machine by clicking on the menu icon in the top-left of Local’s window and go to “Restart Local’s Machine”
Turn off “Faster Docker Volumes” and then re-enable it
Restart your computer
Try turning off your WiFi or disconnecting your ethernet cable. This is an easy way to eliminate DNS issues or slow outbound HTTP requests from your Local site.
If the previous steps didn’t help, try using Query Monitor plugin to get a glimpse into possible slow queries, slow requests, slow functions, etc.
Thanks for the suggestions Clay. Unfortunately nothing worked. My local development site is still extremely slow.
I swapped to the latest default WP theme and disabled all plugins apart from Query monitor but still no change. The db query seems pretty quick (0.01s) but the page generation is huge (16.7s). See screenshot of the admin ‘pages’ screen after loading (I only have two pages in the db!) which takes over 16 seconds to generate.
What could possibly be the cause of this?
Also, I can’t do any WordPress updates as I just keep getting a local route error page show when an update attempt is made.
As a follow-up to this, yesterday all my local sites started to run very fast again for no apparent reason! Even with the Query Monitor plugin running all pages load in under a second, some of them significantly so.
But, I’ve no idea why my local sites were running extremely slow under Windows 10 in the first place, or why they are suddenly fast again. Could they start running slow again without warning?
It would be very useful to have more tools to be able to diagnose problems. In my case the Query Monitor plugin was useful as it showed DB queries were running very fast so it didn’t appear to be a querying issue. But the page generation was huge. Sometimes a page was taking 15-20s to generate and render. I don’t know why this was.
@clay I restarted both my computer and the VM in Local while it was still slow and it did not seem to change anything. And I’m not running any other programs/processes that I wasn’t running before when it suddenly sped up. Very strange. I just hope it doesn’t slow down again!