Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reducing download time for applet

 
Sri Ram
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a jar file of size 250k which has my applet and related classes... it takes lot of time for my applet to load ..is there any way I can reduce the jar file anymore ? also when we analized with optimal server vantange ..it shows there were a number of appturns involved .... I thought when the applet is called for the first time ..thereshould be only one trip ..but it shows a lot of app turns ..anyidea ?
thanks in advance!
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what an "appturn" is so I can't address that issue.
As for the speed of loading a jar file, if it's an issue of network bandwidth, you can compress the jar file. Remember that a .jar file is really just a .zip file (they have the exact same file format). A .zip file is an archive of a list files that can optionally be compressed with LZW compression (.gz)
One of the options when creating your jar file is to use compression; if you do, you will reduce the size of your jar file. This in turn will help you download it faster in limited-bandwidth situations. Keep in mind though that if you compress your archive, your client machine must un-compress it before it can be used, so if you have a very slow client machine, this might take a noticeable amount of time. But if you have a situation where you have a reasonably modern computer, and a slow connection, compressing your jar files will help speed up the d/l time of your applet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic