Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • 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

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.
William Brogden
Author and all-around good cowpoke
Posts: 13074
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic