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.
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?
-
-
Ah well, time to browse the source I guess https://github.com/chromium/chromium/tree/4f9c35c3635144e2c2d1b87d09cbcf076d138b66/base/timer …
Show 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.
Show this thread
End of conversation
New conversation -
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.