3 ms·
> I was saying that for a large program (and there are few large programs whose performance depends on SIMD), Java usually beats C. That goes counter to my exp
by beagle3 13y ago
> I was saying that for a large program (and there are few large programs whose performance depends on SIMD), Java usually beats C.
That goes counter to my experience. Care to share your anecdata here?
- pron 13y agoI thought I did. I've been involved with porting large C++ programs to Java (mostly soft real-time defense applications). We've always seen a significant performance increase (not due to newer hardware). Like I said, this happens for two reasons: large maintainable programs require virtual methods that are hard for the C++ compiler to optimize, and Java opens a whole new realm of possibilities with scalable non-blocking data structures. I would say this is true for most large applications, but untrue in particular circumstances: Java does not excel in many cases of numeric computation (where value types, and, yes, SIMD, would be of assistance). Also, Java is the wrong choice if startup time is important.