[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: (1) how to hide helper classes (2) KDE_NO_INLINE missing?
From: "Dr. Juergen Pfennig" <info () j-pfennig ! de>
Date: 2004-03-07 9:40:05
Message-ID: 200403071040.06420.info () j-pfennig ! de
[Download RAW message or body]
On Sunday 07 March 2004 09:38, Simon Hausmann wrote:
> This probably sounds stupid, but: Why not simply make the function not
> inline instead?
In that part of the world were 95% of all programmers work the compiler can be
very aggressive with inlining. It grabs almost everything (think about dtors
of long-lived classes or error handling code) and makes the program larger if
you don't give it some hints.
Also for that compiler there is little need to place something in a .cpp file
- you better put things in header files there. The .cpp files are there
mostly for "historic" reasons.
Their linker is quite smart (and must be, see .cpp files above) - it optimizes
away whatever is not used or exported (from a DLL).
Your Juergen
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic