Reputation: 7095
Got a website pretty heavy on images and sql calls, and when I access it on my localhost, pages take up to 30 sec to load which is pretty annoying. I'm using xampp. Is it possible to figure out why exactly it is so slow and how to speed it up?
Upvotes: 2
Views: 4017
Reputation: 2667
I had a similar problem with SQL being very slow. Instead of using "localhost" for connecting to my local database, I changed it to 127.0.0.1. It has something to do with domain name lookup. Went from 30-ish seconds to miliseconds.
Upvotes: 3