The timer API: size or type safety?
Posted Dec 7, 2006 17:33 UTC (Thu) by bronson
Parent article: The timer API: size or type safety?
Could a static check be created? You could have type safety AND low memory usage if sparse would whinge whenever you improperly embedded a timer_list. It would require some hinting but that doesn't seem too bad.
One of the reasons the Linux kernel is noticeably faster than Windows nowadays is because the kernel guys have been aggressively pursuing small optimizations like this. 10 small optimizations == 1 large one. That said, I agree: the anti-type-safety guys should show a noticeable runtime difference if they want to justify chucking stricter compiler checks out the window.
to post comments)