![]() |
too slow, ~12 sec for load - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: too slow, ~12 sec for load (/showthread.php?tid=32549) |
too slow, ~12 sec for load - El Forum - 07-27-2010 [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. too slow, ~12 sec for load - El Forum - 07-27-2010 [eluser]davidbehler[/eluser] Code: $this->output->enable_profiler(); too slow, ~12 sec for load - El Forum - 07-27-2010 [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 too slow, ~12 sec for load - El Forum - 07-27-2010 [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. too slow, ~12 sec for load - El Forum - 07-27-2010 [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! too slow, ~12 sec for load - El Forum - 07-27-2010 [eluser]gyo[/eluser] Also, I can quickly suggest you to convert those two side banners (which are now PNGs) into JPGs. too slow, ~12 sec for load - El Forum - 07-27-2010 [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. too slow, ~12 sec for load - El Forum - 07-27-2010 [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. ![]() too slow, ~12 sec for load - El Forum - 07-27-2010 [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 ![]() too slow, ~12 sec for load - El Forum - 07-27-2010 [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 |