LWN.net Logo

Mostly but not totally agree..

Mostly but not totally agree..

Posted Dec 19, 2008 13:53 UTC (Fri) by Flameeyes (guest, #51238)
In reply to: Mostly but not totally agree.. by Solifugus
Parent article: Re: [RFC] Convert builin-mailinfo.c to use The Better String Library.

See there are some particular issues though that you can't workaround by limiting yourself to C syntax in C++.

Since virtual classes require you to use vtables, those will always get in the way of reducing to a minimum the Copy-on-Write memory waste of your software, the amount of symbols to bind increase tremendously, and you probably have to sacrifice most of the builtins from the compiler.

The result is that C++ code can be very inefficient for fire-and-forget tools, like git is. For higher level software (like KDE) they might not be noticeable, but Linus is right in his reasoning.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds