LWN.net Logo

The timer API: size or type safety?

The timer API: size or type safety?

Posted Dec 7, 2006 17:33 UTC (Thu) by bronson (subscriber, #4806)
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.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds