• Post Reply Bookmark Topic Watch Topic
  • New Topic

Floating-point arithmetic: any optimization tips ?  RSS feed

Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
Author and all-around good cowpoke
Posts: 13078
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!