Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to speed up java program

 
yan lu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
Thanks
-Yan
 
Shardool Karnik
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
haha that beats the purpose ...
use Just in Time Compilers ...
or the new J# (Microsoft Rules!)
- DooL
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yan,
Look in http://www.javaperformancetuning.com
and particularly http://www.javaperformancetuning.com/tips.shtml
Then there are many tools permitting to translate anylanguage to a model specification and back to a various languages
Nothing cheap
For ex., http://www.rationalrose.com/
[This message has been edited by G Vanin (edited October 30, 2001).]
 
Shaun Larkin
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic