22 ms·
>Sure, it's possible to write a Java allocator/GC that will yield similar performance to the C++ code, Didnt you just agree with me that it is dependent on the
by hardware2win 3y ago
>Sure, it's possible to write a Java allocator/GC that will yield similar performance to the C++ code,
Didnt you just agree with me that it is dependent on the impl/end product?
Because what would be the reasons in isa world to make it not desirable
>The syntax of the language has constrained the implementation so that Java will practically always be slower.
The most interesting question is: by how much?
1% 3%? 30?
- o11c 3y agoJava code is generally 2x slower than C++ code, unless you're operating entirely on primitive types. The JIT usually can't remove enough of the gratuitous memory accesses the language forces.
- hardware2win 3y agoYoure talking about java end to end, we are talking about just syntax.
- jpcfl 3y ago> Didnt you just agree with me that it is dependent on the impl/end product? No. I'm saying that it may be theoretically possible to tune performance in some cases, but not practical.