Search code examples
java64-bit32-bit

Does Java 64 bit perform better than the 32-bit version?


I noticed Sun is providing a 64-bit version of Java. Does it perform better than the 32-bit version?


Solution

  • Define your workload and what "perform" means to you.

    This is sort of a running annoyance to me, as a performance geek of long standing. Whether or not a particular change "performs better" or not is dependent, first and foremost, on the workload, ie, what you're asking the program to do.

    64 bit Java will often perform better on things with heavy computation loads. Java programs, classically, have heavy I/O loads and heavy network loads; 64 bit vs 32 bit may not matter, but operating systems usually do.