learning dragonfly or C...
Joerg Sonnenberger
joerg at britannica.bec.de
Fri Nov 12 09:06:26 PST 2004
On Fri, Nov 12, 2004 at 01:28:46AM +0100, Jonas Sundstr?m wrote:
> BTW, do long/short variable names matter at all for performance in C
> and C++? And what about function- and class method names?
For dynamic libraries, yes. The overhead for loading a dynamic object
depends on the length of the loaded symbols, because it has to compare
the string length. Now consider that e.g. C++ mangles namespace(s), class
name(s), function name into one large symbol, it can be as large as 1000
characters and more.
Joerg
More information about the Kernel
mailing list