Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Is a Java Application much faster than an Applet.

Reply
Thread Tools

Is a Java Application much faster than an Applet.

 
 
Sanny
Guest
Posts: n/a
 
      12-10-2006
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 just as
Application developed in C++ etc.

Thanks
Sanjay

 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      12-10-2006
Sanny wrote:
> I have an Applet


URL?

>.. which works slow, I think as Browser JVM


Browser (make and model), VM (make and version)

>..may be slow.


It is probably the code of the applet that is slow,
what does it do?

> If I convert it into Java Application will it be much faster just as
> Application developed in C++ etc.


( Please add '?' to the end of questions )

Probably not, but it is easy enough to test for any
applet that does not require a complete applet context
(create a frame, create an instance of the applet,
add the applet to the frame, then call init() and
start on the applet instance).

Andrew T.

 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      12-10-2006

Andrew Thompson wrote:
> Sanny wrote:
> > I have an Applet ...

...
> > If I convert it into Java Application will it be much faster ..

...
> Probably not, but it is easy enough to test for any
> applet ...


...given you can launch applets by themselves in a free
floating frame that has its own VM, using web-start.
E.G. <http://www.physci.org/pc/jtest-applet.jnlp>

Andrew T.

 
Reply With Quote
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      12-10-2006
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 just as
> Application developed in C++ etc.


If the browser and standalone app will use the same
Java version, then I can not see any reason for a
big speed difference.

Arne
 
Reply With Quote
 
Sanny
Guest
Posts: n/a
 
      12-11-2006

> If the browser and standalone app will use the same
> Java version, then I can not see any reason for a
> big speed difference.


I want to speedup my Applet in any way I have three Choices which one
should I choose and which will really help.

1. Convert Applet to a Frame Window.
2. Create a Java Application to run the program instead of Applet
3. Convert this Applet into .exe file using C++/Delphi


Which will be the best way to get fast output.


Bye
Sanny

 
Reply With Quote
 
Ian Wilson
Guest
Posts: n/a
 
      12-11-2006
Sanny wrote:
>>If the browser and standalone app will use the same
>>Java version, then I can not see any reason for a
>>big speed difference.

>
>
> I want to speedup my Applet in any way I have three Choices which one
> should I choose and which will really help.
>
> 1. Convert Applet to a Frame Window.
> 2. Create a Java Application to run the program instead of Applet
> 3. Convert this Applet into .exe file using C++/Delphi
>
>
> Which will be the best way to get fast output.
>


4. Find out why your applet is slow.
 
Reply With Quote
 
Mark Rafn
Guest
Posts: n/a
 
      12-11-2006
Sanny <> wrote:
>I want to speedup my Applet in any way I have three Choices which one
>should I choose and which will really help.


Why are these your only choices? Do you think they're equal in the amount of
work involved?

Add to your list
0. Figure out what part of the applet is slow and why.

0.5. Fix the applet.

>1. Convert Applet to a Frame Window.


Usually pretty easy. Unlikely to help very much.

>2. Create a Java Application to run the program instead of Applet


How is this different from #1?

>3. Convert this Applet into .exe file using C++/Delphi


This is a complete rewrite. If you're going to do that, why not actually
profile your applet, figure out what's wrong, and fix that (option 0).

>Which will be the best way to get fast output.


As others have said, it depends on your application.
--
Mark Rafn <http://www.dagon.net/>
 
Reply With Quote
 
lakkireddy.lakshmi@gmail.com
Guest
Posts: n/a
 
      12-12-2006


On Dec 10, 9:42 pm, Arne Vajhøj <a...@vajhoej.dk> 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 just as
> > Application developed in C++ etc.If the browser and standalone app will use the same

> Java version, then I can not see any reason for a
> big speed difference.
>
> Arne


 
Reply With Quote
 
EJP
Guest
Posts: n/a
 
      12-13-2006
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.
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      12-13-2006
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is java consumer/producer so much faster than C++ Melzzzzz C++ 39 07-29-2012 12:40 PM
ANN: pyTenjin 0.8.0 - much faster template engine than Django kwatch Python 1 06-17-2009 02:57 PM
Batch thumbnail JPG lossless rotation that's much faster than Irvanfiew Bill Wells Digital Photography 12 01-26-2009 01:59 PM
RE: Wow, Python much faster than MatLab Doran, Harold Python 10 01-01-2007 06:56 PM
Wow, Python much faster than MatLab Stef Mientki Python 11 01-01-2007 02:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57