How to improve Performance

thread: 7 messages  |  last: about 7 years ago  |  started: tuesday, september 27, 2011, 3:32 pm pdt


#1  |  sumitkumarg (india) Bahamas
Tuesday, September 27, 2011, 3:32 PM PDT

My website is working very slow. So many places i am getting Ajax error while browsing.

Another very big issue is my web site is very slow.

Please suggest some thing so that i can improve something on globally.

My web link is http://www.canadacallhome.com/

#2  |  Mischa Kroon (Holland) Netherlands (Holland, Europe)
Tuesday, September 27, 2011, 5:16 PM PDT

Some simple things:
use a CDN to load jQuery.

run a minifier over your images.
http://www.smushit.com/ysmush.it/
Will work.

Try to get gzip to work.

More extreme would be to get all the small images into one file and use CSS sprites.
http://www.w3schools.com/css/css_image_sprites.asp

Hope this helps

#3  |  Mike Ho (San Diego, CA) United States of America Qcodo Administrator
Tuesday, September 27, 2011, 9:03 PM PDT

Have you profiled at all?

You gotta profile first.  Find out where your bottleneck is, and then go from there.

#4  |  Zbyszek Czarnecki (Warsaw, PL) Poland
Wednesday, September 28, 2011, 5:16 AM PDT

How to profile the database queries in qcodo:

http://qcodo.produktiva.net/examples/qcodo_query/profiling.php

#5  |  Mike Ho (San Diego, CA) United States of America Qcodo Administrator
Friday, September 30, 2011, 9:01 AM PDT

Nice!  I like the examples page.  Would you be okay if we added it to the main Examples site?  If you've got everything set up with Github, feel free to put the added file(s) into a single pull request, and I can put it into the core.

#6  |  Zbyszek Czarnecki (Warsaw, PL) Poland
Friday, September 30, 2011, 2:32 PM PDT

Well you could just include this example page into the framework but qcodo profiling probably still fails when using the adhoc queries. I did fix that by basically rewriting the profiling backend and profiling page. (Should use less memory now, and supports logging mysql query time btw).

Bad news is new profiling page uses new css framework I did which is waiting to be included / rejected on github. I didn't send you a pull request with these additions because of the dependecy.

#7  |  Mike Ho (San Diego, CA) United States of America Qcodo Administrator
Tuesday, October 4, 2011, 8:26 PM PDT

Got it... thanks.  Yeah, I know that the CSS stuff is one of the few pull requests that's sitting on github.  Unfortunately, since it's definitely a much more involved merge, it's going to take a bit more time for me to review the code and get it committed to core.  But yes, overall I do like the changes, and I do plan on integrating it all in.

Thanks again!



Copyright © 2005 - 2019, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.