a text on optimizing C++

David Leimbach kde-optimize@mail.kde.org
Fri, 24 Jan 2003 18:05:38 -0600


>
> What are your thoughts on
>
> KConfig( "somerc" ).writeEntry( ... );

If you never need that object constructed on "somerc" again this is fine 
otherwise you end up calling this constructor over and over again... Of 
course that may be optimal if the configuration file changes a lot over a 
period of time.

>
> then? I sometimes tend to fold statements together like this but I hardly
> see it done elsewhere, making me wonder if it's maybe a bad habit of mine.