4 ms·
Java often is as fast as cpp, sometimes faster. JIT gives it a huge advantage and c2 is pretty much state of the art these days.
by bitcharmer 4y ago
Java often is as fast as cpp, sometimes faster.
JIT gives it a huge advantage and c2 is pretty much state of the art these days.
- anthk 4y agoNo. Compare SweetHome 3D to any similar tool written in C++.
- bitcharmer 4y agoProviding a single sample of random software as the ultimate rebuttal to my claim speaks more about your understanding of how performance comparisons of compilers and runtimes are made than about Java itself. My turn: NASDAQ moved from cpp to Java quite a few years ago. Do you think you know something they don't?
- michaelmrose 4y agoThere are 3 separate statements you could make. SweetHome 3D IS slower than competitive projects written in C++. C++ tools tend to be faster than comparative Java tools because of fast startup time, no GC, and being the default choice for performance sensitive projects for decades. C++ is definitively faster because of inherent advantages. You appear to be jumping to the third based on the first which appears erroneous in argument even if you turned out to be correct. In actuality it appears that for most things in the same ballpark language choice isn't necessarily the only or even the most important factor. This is even more true for things where startup time is an inconsequential factor, with better GC that doesn't result in lengthy pauses, and where development time is a substantial limiting factor wherein being quicker to work with may result in more time available to improve other design choices yielding as good or better results.
- mike_hearn 4y agoTechnically, GraalVM Enterprise Edition is state of the art. It's similar to C2 for Java code, but for compiling other languages EE smokes C2.