Key Recommendations

  • Java benefits from a fast CPU.

  • Use a recent compiler and VM, preferably one optimized for your platform.

  • Profile your code and optimize the most-used parts.

  • Use threads.

  • Use buffered I/O.

  • Ask the client to cache the applet.

  • Java is overkill for small animations or calculators. Use JavaScript or animated GIFs.

Get Web Performance Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.