LWN.net Logo

The cost of inline functions

The cost of inline functions

Posted May 9, 2004 7:54 UTC (Sun) by hs (guest, #15495)
In reply to: The cost of inline functions by eru
Parent article: The cost of inline functions

not necessarily. it depends a lot on the function code and what the optimizer does: in some situations things like constant propagation and commeon subexpression detection can make most of the inlined code go away. <p>
with some optimizations it takes good judgement to decide whether to activate them or not


(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