> Ape.setTimeout is extremely slow!

Ape.setTimeout() is fast, but checking if timer functions should be
fired is very slow.
The check function is called 1000 times per second, so if you have
many timers, aped process will be very load.
For example, if there are 50000 timers (eg 10000 users, 5 timers for
each user), routine will be check timers 50 millions times per second.
I didn't test it for that big value, but I think that on some servers
CPU load will be nearly 100% and aped become unstable.

Because I scale my app to many users, where each user have a few
timers, I have optimized timers structure and commited to my fork -
http://github.com/harmer/APE_Server
Now, check function (called 1000 times per second) checks only first
timer, becase all timers are ordered by time of planned execution.

Dariusz K.

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to