[Home] [Groups] - Message: [Prev in Group] [Next in Group]
1669: Re: [MUD-Dev] Languages
[Full Header] [Plain Text]
From: Jeff Kesselman <jeffk@tenetwork.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Sat, 24 May 1997 00:13:15 -0700
Organization: Kanga.Nu
At 10:51 PM 5/23/97 PST8PDT, you wrote:
>[Ben G:]
>
>:I'm curious about some things. What exactly makes c++ slower? Is it
>:more class calls because most ppl make accessing class data a function
>:call? Perhaps inheritance mapping of some sort? I head that a c++
>:compiler basically just translates the code into c before compile anyway..
>
>The larger number of function calls (at the implementation level) is one
>of the biggest slow-downs, I think.
Remember that C++ gives you multiple ways to do inlines.
Infact there is NO reason why C++ shoudl have ANY more voerhead then C IF
youvundertsnad what the compiler is doing and code to it correctly.
Typicly the reason C++ code ends up slower is due to mis-coding of
constructors by peopel who do NOT understand whats going on underneath.
JK