Even if the address is 127.0.0.1 or localhost, if there is nothing listening to that port you will get a delay of one second. This means that every time PHP runs it will try to connect to the remote debugging address on the specified port. The culprit is remote debugging set to auto-start. If you are using XAMPP you might not know it but XDebug is already activated for you, with a bad configuration which makes thing slow. If you're developing PHP you have most likely installed XDebug on your local web server. This gives better energy efficiency but it may increase the time to serve a request by a fact of 2 to 3! XDebug Windows errs towards the side of slower speed. This change comes down to how Windows governs the CPU speed in the Balanced plan – or any plan with a different minimum and maximum CPU speed setting. You may have to click on "Hide additional plans" to see it. The easiest and silliest change you can make is changing your computer power plan from Balanced to High Performance.Ĭlick on the Windows start menu, type "choose a power plan" and press Enter. This article explains some of the tricks I used to make PHP faster on my Windows development machines. Most of the sluggishness observer, however, is down to configuration and can be mitigated. Even on the exact same machine, Linux is a good 2x to 5x faster than Windows. The first thing someone notice when switching from Linux or macOS to a Windows machine for PHP development is that it's so darned slow. Developing PHP applications which support a variety of servers and environments requires me to occasionally develop on Windows.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |