Pretty happy I got a good grasp of how to implement (efficient) async timers today!
Multi-layered timers with decreasing granularity, AKA "hashed wheel" timers.
-
Show this thread
-
IIRC Chromium recently switched to a really efficient timer implementation, and someone blogged about it and I no longer have the link. Does this ring a bell for someone?
1 reply 0 retweets 0 likesShow this thread -
Ah well, time to browse the source I guess https://github.com/chromium/chromium/tree/4f9c35c3635144e2c2d1b87d09cbcf076d138b66/base/timer …
1 reply 0 retweets 0 likesShow this thread
Heh, haven't found the code I was looking for, but have found something else interesting. Apparently in C++ it makes sense to sometimes employ "defensive copying" to prevent shared data from being deleted. I guess I used to do the same in JS with xtend() on option args.
6:24 PM - 2 Nov 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.