One global timer vs. multiple timers
#10

If you use separate timers, their logic will be executed only when its needed. By throwing everything inside one timer, it would do unnecessary checks each second.
And more importantly - its always a nice idea to keep things modular, even if it comes with a cost of a slightly slower performance (it will be too minimal to even notice).
In this case to preserve readability, you can just throw a bigger server at the problem. Servers are cheap, developer time is not.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)