• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Java > Performance Tips: What You Can Do

16.4. Performance Tips: What You Can Do

OK, so Java performance will improve in future generations of compilers and JVMs, but you need better performance now. What can you do? There are dozens of techniques for improving Java performance. Let's go through the major ones, starting at the source code level.

16.4.1. Get the Best VM for Your Runtime Platform

If you know your code will be running on a particular platform, say because it is server-side code, be sure you have the latest VM for that platform. You probably also want a VM written by the operating system vendor because the vendor presumably knows the most about optimizing Java for that OS. So use the MRJ on the Mac, Digital's VM on Digital Unix, and so on. Microsoft also makes the fastest VMs for Windows, but be careful when using Microsoft Java products lest you end up writing code that won't run anywhere except on Windows.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint