Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Note about how classic OOP with C++ fails efficiency
Re: Note about how classic OOP with C++ fails efficiency [message #25473 is a reply to message #25451] Thu, 25 February 2010 09:45 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
The good thing is, that the absolute speed of everything is going up, so unless you are game developer dealing with GBs of data per second, you can pretty much stick to "good old OOP" in C++, and unless you do something very stupid, you can safely ignore the 1000:1 RAM latency and the app will be still fast enough.

Basically I still do believe the OOP "by book" approach allows for high abstraction, thus leading to lean source code which is easy to maintain and even reuse sometimes, although the performance is suboptimal.

I'm afraid DOD principle will generally lead to slightly more complex code. Then again the real life example from graphics shaders shows the DOD can lead also to lot of simple pieces of code, which is not lot more difficult to manage then shorter general OOP class doing all the stuff in one place, for some people it may be even simpler to manage.

I can imagine some cases where DOD will actually give you a mental shortcut to better classes with simpler interface (where going there trough OOP would take 3-4 versions at least), leaner code and better performance, so I have to be more aware of it and catch such cases early and use it to my advantage. Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Clang vs. GCC
Next Topic: Windows 7 Bug
Goto Forum:
  


Current Time: Fri May 10 13:57:06 CEST 2024

Total time taken to generate the page: 0.02055 seconds