View Single Post
Jerrythabest

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Jul 16, 2009, 02:00 AM
Jerrythabest is offline
Hmmm... it appears to me the CPU usage of that GiP script could be reduced significantly if all those timers (2 per server plus one for the refresh if I'm correct... that makes 17 at the moment) were merged into just one that calls 3 functions:
-one to reduce the refresh timer (and perform the refresh at -1 of course)
-one to loop through the servers and increase their uptimes with one second
-one to loop through the servers to ping them

Which, I admit, isn't a simple, but still a very easy-to-perform change in the JS code as you've got all the functional code already there.



Anyway, this thread is about JJ2+, so I'll shut up about this here... fortunately vBulletin has a PM feature.


One final note: as I've stated in numerous threads already, the JJ2 GiP list could definitely use a complete overhaul, preferably with co-operation of the listservers.



EDIT:
And why would you loop twice through the servers? You could even merge the last two points on my list into one =D
__________________