This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Performance" Watch "Applet Performance" New topic
Author

Applet Performance

Stephan Bardubitzki
Greenhorn

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 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
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
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.


Ping & DNS - my free Android networking tools app
Stephan Bardubitzki
Greenhorn

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: http://aspose.com/file-tools
 
subject: Applet Performance
 
Similar Threads
Conversion of App to Applet
JVM2's CLASSPATH
DLL in Swing JARs?
Debugging Applets via Eclipse & running jar from external dir
jce.jar