View Single Post
Old 05-20-2003, 10:09 PM  
fnet
Confirmed User
 
Join Date: Jul 2002
Posts: 1,721
Quote:
Originally posted by punkworld


Which results in C being slightly faster, and C++ being more suitable for large projects, team projects, creating easily reusable code etc.
Speed depends on what libraries (the rtl for the general case) are being loaded and used, how efficient the code is. People write fast apps in C for boring reasons. It's simple. Most people don't need C++ for their tiny little app. Speed comes down load time and the code that has to repeat... the code that loops and anything it has to call. In either C or C++ you can make asm {} block calls which are mostly macroized opcodes- register manipulation. and that's as bit and crafty and fast as you're going to get if performance is critical.

genetic algorithms and smarter cpus are another way to think about that though.

With both languages you have complete control of performance.
__________________
the sound of one hand googlewhacking
fnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote