File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes how to speed up java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "how to speed up java program" Watch "how to speed up java program" New topic

how to speed up java program

yan lu

Joined: Jul 03, 2001
Posts: 1
I have some java programs to process larger amount of data and also involve some calculations. Because java class file uses java VM, it seems a lot slower then C/C++ program.
Anybody can tell me how to compile java source file into the machine code straightly rather than a class file.
Shardool Karnik

Joined: Oct 26, 2001
Posts: 2
haha that beats the purpose ...
use Just in Time Compilers ...
or the new J# (Microsoft Rules!)
- DooL
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Look in
and particularly
Then there are many tools permitting to translate anylanguage to a model specification and back to a various languages
Nothing cheap
For ex.,
[This message has been edited by G Vanin (edited October 30, 2001).]
Shaun Larkin

Joined: Nov 12, 2001
Posts: 18
I'm reading the performance tweeking by Oreilly. It says that compiling to native code will probably "decrease" the speed of most Java programs. The JIT compilers, Hotspot, are optimized to take care of alot of situations.
I agree. Here's the link:
subject: how to speed up java program
It's not a secret anymore!