LWN.net Logo

Who is the best inliner of all?

Who is the best inliner of all?

Posted Jan 17, 2009 22:27 UTC (Sat) by jreiser (subscriber, #11027)
Parent article: Who is the best inliner of all?

How much of the fuss is due to not having or not using appropriate measurement tools? It seems to me that there might be a small number of cases (say, 10) where inline is required for functional correctness. In the other 29990 cases, #define inline /*empty*/ should work, and the justification for an actual inline should be a measurement of the increase in speed, or decrease in size. The measurement should be documented enough so that it can be repeated and verified (say, once per year) as compilers, machines, and usage changes.


(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