Files
kiwistation/code/_onclick/hud
Kyle Spier-Swenson c341178ff4 Fixes bug with addtimer keeping old timers around, makes addtimer even faster. (#23126)
* Fixes timers being left around, Makes addtimer() sanic fast.

This adds a new flag, TIMER_STOPPABLE. Most(80%) of the overhead for addtimer() was in adding the timer to the associated lookup list for deltimer() to use. Moving that functionality to a flag so it wouldn't slow down the 70% of things calling timers puts the final nail in the coffin of byond's sleep/spawn().

spawn: 324 seconds across 5,948,372 calls

addtimer: 67 seconds across 5,953,220 calls

The testing setup for profiling was included in this commit, it will be removed in a later commit. @Fox-McCloud

* Remove profiling procs.

* fix runtime

luckly when this happened, we were about to resume anyways.
2017-01-20 09:31:50 +01:00
..
2016-12-28 14:16:32 +01:00
2016-11-22 21:56:35 +01:00
2016-12-10 05:44:48 -05:00
2016-12-10 05:44:48 -05:00
2016-12-10 05:44:48 -05:00
2016-11-25 15:21:33 +13:00
2016-12-20 21:55:10 -06:00
2016-12-10 05:44:48 -05:00
2016-12-20 21:55:10 -06:00
2016-12-10 05:44:48 -05:00
2016-12-10 05:44:48 -05:00
2016-11-25 15:21:33 +13:00
2016-11-25 15:21:33 +13:00
2016-09-02 16:10:16 +01:00