Examples
Team LiB
Previous Section Next Section

Examples

Example: An inline irony. Here is a simple demonstration of the hidden cost of a premature micro-optimization: Profilers are excellent at telling you, by function hit count, what functions you should have marked inline but didn't; profilers are terrible at telling you what functions you did mark inline but shouldn't have. Too many programmers "inline by default" in the name of optimization, nearly always trading higher coupling for at best dubious benefit. (This assumes that writing inline even matters on your compiler. See [Sutter00], [Sutter02], and [Sutter04].)

    Team LiB
    Previous Section Next Section