• Post Reply Bookmark Topic Watch Topic
  • New Topic

Floating-point arithmetic: any optimization tips ?

 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm writing an application that requires billions of floating-point arithmetic operations.
I was wondering whether anyone could suggest some basic tips for optimizing Java/JVMs for such operations ?
Or refer to some website/book on the subject ?

Up till now, I've come up with the following (very basic) facts:
- Use primitive variables rather than wrapper classes (such as Double)
- Run the jvm with '-server' flag (this gave me over 100% performance gain!)

Any other JVM-related tips would be greatly appreciated.
Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!