View Full Version : Ajax using resources too heavily
Brad811
10-16-2009, 09:46 AM
I'm worried that my AJAX is not very efficient and uses system resources too heavily on the user's end. I've got like 5 objects to constantly update on my web page, at different speeds/times. I'd like to possibly develop my own PHP AJAX framework (if this would even help, at least it would most likely clean up the code a bit). Anybody think they could point me in the right direction? (no, I will not use an existing framework, that kinda defeats the purpose of what I'm trying to do!)
oesxyl
10-16-2009, 11:55 PM
I'm worried that my AJAX is not very efficient and uses system resources too heavily on the user's end. I've got like 5 objects to constantly update on my web page, at different speeds/times.
this a matter of design. Why do you think that developing your own framework you don't do same mistakes or you don't have same problems?
I'd like to possibly develop my own PHP AJAX framework (if this would even help, at least it would most likely clean up the code a bit). Anybody think they could point me in the right direction? (no, I will not use an existing framework, that kinda defeats the purpose of what I'm trying to do!)
maybe your own library of scripts? whay not, :)
look at this:
http://www.miniajax.com/
I don't say to use it, look how they think, :)
best regards
Brad811
10-18-2009, 10:40 AM
this a matter of design. Why do you think that developing your own framework you don't do same mistakes or you don't have same problems?
maybe your own library of scripts? whay not, :)
look at this:
http://www.miniajax.com/
I don't say to use it, look how they think, :)
best regards
Oh no, I wrote the AJAX and everything else myself, I'm just worries it's not as efficient as it could be. I was hoping someone could possibly help me de-bulk it a bit. I didn't know if doing a little OO-PHP would help the situation or not. I mean, it works, I just feel its unlikely its as efficient as it could be.
Recently I did tone it down a bit by only changing large amounts of text only after checking if it needs to be changed at all.
Thanks, I'll check out that site.
oesxyl
10-18-2009, 06:54 PM
Oh no, I wrote the AJAX and everything else myself, I'm just worries it's not as efficient as it could be. I was hoping someone could possibly help me de-bulk it a bit. I didn't know if doing a little OO-PHP would help the situation or not. I mean, it works, I just feel its unlikely its as efficient as it could be.
as I said, is a matter of design. On the javascript side I don't think that oo or not make a difference, I talk about speed only, js is oo by design but is also functional and procedural, :)
From the php side, oo is slower but help a lot( debug and maintain/extend the code).
Anyway there are tools who can help you to profile the code and once you know what is slow you can redesign or when design is ok to optimize your work.
best regards
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.