• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet Performance

 
Stephan Bardubitzki
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 manifest.mf. 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.

Stephan
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic