Featured Replies
Cookies op HigherLevel.nl
We hebben cookies geplaatst op je toestel om deze website voor jou beter te kunnen maken. Je kunt de cookie instellingen aanpassen, anders gaan we er van uit dat het goed is om verder te gaan.
We hebben cookies geplaatst op je toestel om deze website voor jou beter te kunnen maken. Je kunt de cookie instellingen aanpassen, anders gaan we er van uit dat het goed is om verder te gaan.
okki
> > > > In general yes, C++ programs are slower than
> > > > the equivalent C programs.
> > >
> > > That is a myth.
> >
> > No fact. As a Systems Consultant working for many big companies and
> > organisations (for many years now) I have observed this to be the
> case.
>
> Then either you code C++ in bad style ir you have been using bad
> implementations. Also keep in mind that the official C++ standard was
> ratified in 1998.
To wrap up this debate once and for all, I decided to perform a benchmark.
I took 20,000 lines of C code and 20,000 lines of equivalent C++ code, printed them out on standard 20 lb weight paper (8.5" x 11"), bound each into a ring binder and dropped them both out the window of my office (On the 28th floor, mind you.)
The C program hit my boss on the head while the C++ program was still fluttering downwards at about the 3rd floor level. I think this is proof enough that C programs are faster.
Wouter
--
"Two of the most famous products of Berkeley are LSD and BSD. I don't think that this is a coincidence"