File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Applet Performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Performance" Watch "Applet Performance" New topic

Applet Performance

Stephan Bardubitzki

Joined: Dec 26, 2005
Posts: 29
Hi all,

I need some advice on how to improve applet performance.

My applet depends on some third party libs which are in the Class-Path of the I indexed my applet.jar in the hope to improve performance, but recognized that it just improved the download of the applet.jar.

One of the third party jars is jfreechart-1.0.0.jar, which is about 1MB. When it comes to display a chart, the classloader downloads jfreechart.jar from the server, causing a quit long delay. This makes user thing the applet is not working correctly.

Applet caching does at the moment not support jars in the Class-Path of the manifest, if I'm right.

Are there any other ways to improve performance? For example, is it possible to use pack200 compression format?

Thanks in advance.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Different compression methods would necessitate a different URLClassLoader, so that's not really an option.

Can you specify the secondary jar files in the applet tags archive attribute, instead of the manifest file? At least then they would be cached after the first access.
Stephan Bardubitzki

Joined: Dec 26, 2005
Posts: 29
Thanks(Danke) Ulf;

I just wondering is there are order in which the jars in the archive tag are loaded? Is the applet initiated after all jars are loaded or right away after the jar containing the Main-Class is loaded?
I agree. Here's the link:
subject: Applet Performance
It's not a secret anymore!