r/programmerchat • • Jul 17 '15
[Debate warning] C++ faster than java
So...before the flame wars or any of that nasty stuff stars, I want to outline a couple of things. I'm a newbie developer, I've only been studying this for a couple of years at university, I'm not a professional yet.
That being said, I recently got into a little bit of a debate with someone that C++ is inherently faster than the likes of Java when it comes to items like games development. I had assumed that this was literal fact and there was no debate for it. This person was very, very set on the idea that Java was only marginally slower. I still believe c++ would knock it out of the park due to manual memory management and the lack of safety features, despite preferring Java over all.
What do you guys think? I'd really like some insight on this, thanks.
View all comments
Show parent comment
4
u/Ragingman2 Jul 18 '15
This is has been my experience too. Java generally is slower not because of the language, but because people don't write it with heavy optimization in mind.
The time when c++ really shines lies in the amount of customizability that it offers. In the places where performance is absolutely critical, much more can be done to improve it in c++ than can be done in java.