 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Luke Guest
|
Posted: Fri Nov 26, 2004 4:16 pm Post subject: Speed up applet execution? |
|
|
hello!
Is there a way to speed up java?
My applet (still in work in progress)
www.dentella.it/java/morph.htm
is quite big (900x600ca) and signed, but it takes 2 minutes to load
(WinXP, FireFox 1.0, Celeron 1.3GHz, 256Mb RAM, Java 1.5)...
Maybe can I give java more memory?
Or are there other tricks?
thanks!
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Fri Nov 26, 2004 4:34 pm Post subject: Re: Speed up applet execution? |
|
|
On Fri, 26 Nov 2004 16:16:12 GMT, Luke wrote:
?? The jar is only 5.7Kb.
| Quote: | ..and signed, but it takes 2 minutes to load
|
It took 8 seconds for my IE to report 'done', which, unless it
is lying to me, is the time it took to contact the server, make a
connection, download and parse the HTML, discover the applet, and
download it as well.
I refused the security certificate, and the applet appeared
within 30 seconds.
First, I need to be clear on what you mean by 'long time to load'.
Put a System.out.println( "Date: " + new java.util.Date() );
...at the start and end of the 'init()'. It might be that you
are tryring to do too much in it.
| Quote: | (WinXP, FireFox 1.0, Celeron 1.3GHz, 256Mb RAM, Java 1.5)...
|
(WinXP, IE 6.0026, AMD 1.8GHz, 512Meg RAM, Java 1.5 ..and broadband)
| Quote: | Maybe can I give java more memory?
|
Throwing more memory at the applet will not solve this one, I fear.
--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
|
|
| Back to top |
|
 |
Luke Guest
|
Posted: Fri Nov 26, 2004 4:40 pm Post subject: Re: Speed up applet execution? |
|
|
On Fri, 26 Nov 2004 16:34:24 GMT, Andrew Thompson
<SeeMySites (AT) www (DOT) invalid> wrote:
Hello!
| Quote: | ?? The jar is only 5.7Kb.
|
Yes, I thought applet dimensions (900 x 600 pixels) could be the
reason why it loads so slowly...
| Quote: | I refused the security certificate, and the applet appeared
within 30 seconds.
|
why did you refuse my fantastic home-made certificate?
A question about that... I've a working certificate (for my digital
signature) given from a local authority... will it be accepted by Java
or have I to buy one from Verisign?
For my speed problem... I tried with IE and the applet is faster,
maybe FireFox has some troubles.
Thanks, you're replying to all my questions! :-)
|
|
| Back to top |
|
 |
Luke Guest
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Fri Nov 26, 2004 5:24 pm Post subject: Re: Speed up applet execution? |
|
|
On Fri, 26 Nov 2004 16:40:52 GMT, Luke wrote:
| Quote: | why did you refuse my fantastic home-made certificate?
|
I use a 'self-signed' certificate for PhySci.
<http://www.physci.org/install/download.jsp>
<http://www.physci.org/install/security.jsp>
It is just that I have to be cautious about what I am prepared
to run on my extremely fragile machine.
| Quote: | A question about that... I've a working certificate (for my digital
signature) given from a local authority... will it be accepted by Java
or have I to buy one from Verisign?
|
Does not matter really. Either way the user will be asked if they
intend to accept the certificate. If the 'local authority' has
registered their certificate with VeriSign or Thawte etc., the message
will be slightly less onerous. It will not have the part
'failed to verify the authenticity..'
OTOH, there are others lurking that will tell you that a self-signed
certificate is unsuitable for any 'real world' application/applet.
Note that I have devoted a page on my site to explaining what the user
will see, and why I do not have a 'verified' certificate.
--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|