too slow, ~12 sec for load |
[eluser]davidino86[/eluser]
Hi all, http://portobello.bitnet.it/ this is a site that i'm trying to get it faster, now for complete the request it takes about 12 second i don't think is normal. the site is on a windows server 2003 with mssql for db, i set the pconnect of CI to false, i don't know if is enough for you to help me. it takes too long for load any pages at the beginning, why? thanks for the help.
[eluser]davidbehler[/eluser]
Code: $this->output->enable_profiler();
[eluser]davidino86[/eluser]
i put the code in the home controller if you want you can go at site from the link above, because i don't understand wich is the thing that runs the site too slow...thanks
[eluser]davidbehler[/eluser]
I was expecting to see a query or two that take very long but they look fine. Any special operations in your controller? Posting some code might make it easier for us to see what's up.
[eluser]gyo[/eluser]
First of all, the homepage weighs more than 1mb. In fact after the first load, the other pages are much faster. You should definitely optimize images+css+js. Add Gzip encoding too. As additional test, you could contact your hosting provider and ask them to give some info about it. They might confirm you if your application is actually wasting too many resources, or not. Hope it helps!
[eluser]gyo[/eluser]
Also, I can quickly suggest you to convert those two side banners (which are now PNGs) into JPGs.
[eluser]davidbehler[/eluser]
The profiler showed, that it took the controller about 17sec to do his job...that's before the browser even gets an answer and starts loading the files.
[eluser]gyo[/eluser]
I can't see the profiler but I get your point, it's a different story. How many queries was the DB doing? I think it should be benchmarked on localhost too. If possible, also try a Linux server. And the assets optimization I suggested is still valid. ![]() Btw, if nothing fixes the issue, there must be some mistake in your code... impossible to guess. ![]()
[eluser]davidbehler[/eluser]
You are right, the assets optimization is still a valid option and he should definetly do this. Apart from that we'll have to wait for some code ![]()
[eluser]davidino86[/eluser]
here i'm, sorry! i put the output profile once again, and here the code of the home controller the first part Code: <?php |
Welcome Guest, Not a member yet? Register Sign In |