Home arrow static arrow Java Programming [Archive] - DISCUSS:How to improve the speed of java?
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - DISCUSS:How to improve the speed of java?
This topic has 11 replies on 1 page.

Posts:16
Registered: 8/7/04
DISCUSS:How to improve the speed of java?  
Aug 7, 2004 7:24 PM



 
How to improve the speed of java?
 

Posts:30
Registered: 2/9/01
Re: DISCUSS:How to improve the speed of java?  
Aug 7, 2004 7:29 PM (reply 1 of 11)



 

Why ?
 

Posts:357
Registered: 8/5/04
Re: DISCUSS:How to improve the speed of java?  
Aug 7, 2004 7:36 PM (reply 2 of 11)



 
use recursion more often, as it considerably reduces the no. of objects created and therefore improves speed
 

Posts:357
Registered: 8/5/04
Re: DISCUSS:How to improve the speed of java?  
Aug 7, 2004 7:58 PM (reply 3 of 11)



 
are you good lookin "female" ? BugEyesJava ?
 

Posts:5,965
Registered: 5/17/03
Re: DISCUSS:How to improve the speed of java?  
Aug 7, 2004 9:56 PM (reply 4 of 11)



 
Generally Java is very fast. Do you have a specific problem?
 

Posts:16
Registered: 8/7/04
Re: DISCUSS:How to improve the speed of java?  
Aug 7, 2004 10:56 PM (reply 5 of 11)



 
Sorry.I don't know what you mean.I am a beginner.
 

Posts:16
Registered: 8/7/04
Re: DISCUSS:How to improve the speed of java?  
Aug 7, 2004 10:57 PM (reply 6 of 11)



 
Annihilator890i
I do not know what you mean.
 

Posts:1,135
Registered: 1/16/04
Re: DISCUSS:How to improve the speed of java?  
Aug 7, 2004 11:31 PM (reply 7 of 11)



 
How to improve the speed of java?

From the other thread, I take it that you are using NetBeans to code, compile and...

of course "run" your freshly compile programs... ( most IDE can "run" your apps)

If that the case, yes Java will seem slow... But it's not really Java's fault...

It's that, now your program has to run through NetBeans ( the same with most other IDE's also) to get to the Java Virtual Machine ( aka Java Runtime Environment )
and so that an extra layer ( the IDE ) your program has to deal with which slows it down...

While it's great for debugging, because NetBeans can capture debugging information while you are developing you application, once your app is done, you can run it directly on the JVM...

And if you want to see how fast Java really runs, the execute your program at the Command Line...

It's fast...

- MaxxDmg...

- ' He who never sleeps... '
 

Posts:16
Registered: 8/7/04
Re: DISCUSS:How to improve the speed of java?  
Aug 7, 2004 11:46 PM (reply 8 of 11)



 
Well.I got it.Thank you.
By the way.How can I make signature of my own like you?I mean,in this forum.
 

Posts:1,135
Registered: 1/16/04
Re: DISCUSS:How to improve the speed of java?  
Aug 8, 2004 1:46 AM (reply 9 of 11)



 
Well.I got it.Thank you.

Your welcome...

By the way.How can I make signature of my own like you?I mean,in this forum.

As far as I know, it not possible... This forum does not have a "Signature" feature...

So as you can guess, I have to type that all in... :D

- MaxxDmg...

- ' He who never sleeps... '

 

Posts:682
Registered: 12/1/99
Re: DISCUSS:How to improve the speed of java?  
Aug 8, 2004 9:38 AM (reply 10 of 11)



 
How to improve the speed of java?

By learning to code better.

Java in itself is seldom a problem. What is of prime importance is the way you write code. You can improve the performance of your java programs the same way you would for your C++ programs or any other language for that matter: by implementing [url=http://www.precisejava.com/index.htm]best practices[/url] , for example.
 

Posts:262
Registered: 10/8/03
Re: DISCUSS:How to improve the speed of java?  
Aug 8, 2004 10:30 AM (reply 11 of 11)



 
I would also suggest installing the latest version of the Java VM. It got much faster over the years and Java programs run now at about the same speed as natively compiled programs.
Just Swing is still slower than most of the GUI libraries there are for C++. But it's fast enough for virtually every situation especially with the ever growing computing power and it is probably the most flexible GUI library around.
 
This topic has 11 replies on 1 page.