Is Java much harder to "tweak" for performance compared with C/C++?

Posted by user997112 on Programmers See other posts from Programmers or by user997112
Published on 2012-11-20T23:29:22Z Indexed on 2012/11/21 5:20 UTC
Read the original article Hit count: 276

Filed under:
|
|
|

Does the "magic" of the JVM hinder the influence a programmer has over micro-optimisations in Java? I recently read in C++ sometimes the ordering of the data members can provide optimizations (granted, in the microsecond environment) and I presumed a programmer's hands are tied when it comes to squeezing performance from Java?

I appreciate a decent algorithm provides greater speed-gains, but once you have the correct algorithm is Java harder to tweak due to the JVM control?

If not, could people give examples of what tricks you can use in Java (besides simple compiler flags).

© Programmers or respective owner

Related posts about java

Related posts about c++