![]() | |||||||||||||
Messages in this thread |
Linus Torvalds wrote: > > Well, I actually disagree on this. For large include files (fs.h is the > > worst), and complicated arrangement, this technique eliminates spurious > > includes and saves a lot on compile time (really!). > > Numbers please. The GNU C preprocessor remembers if an include file was completely inside an #ifndef/#endif conditional (modulo whitespace and comments) and will skip the #include for the same file if the macro in #ifndef is already defined. I suspect putting guards around the include will not save any more time. bfn, Christopher Turcksin <turcksin@uk.ibm.com> IBM Global Services - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 12:15 [W:2.585 / U:0.020 seconds] ©2003-2008 Jasper Spaans | |||||||||||||