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.
Ah well, time to browse the source I guess https://github.com/chromium/chromium/tree/4f9c35c3635144e2c2d1b87d09cbcf076d138b66/base/timer …
-
-
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 threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.