title: 64-bit Java VM runs app 10x slower
body: <p>I have a Java app which is packaged up using JarBundler.  The app is fairly CPU intensive (lots of big Collection.sort() calls).</p>
  
  <p>On Mac OS, the app runs slow and sluggish when using the 64-bit JavaApplicationStub.  This JavaApplicationStub file is launching the Java 64-bit VM.</p>
  
  <p>I found an old JavaApplicationStub file which is 32-bit only.  I replaced it in the Bundle, and the app runs 10x faster! (consequently, the 32-bit VM is utilized when the application runs).</p>
  
  <p>Does this make any sense?  Why is the 64-bit VM so much slower?  Does it make sense to build an app and hack the JavaApplicationStub file like this?</p>
  
  <p>Advise is appreciated.</p>