Of course, one has to be careful that precision doesn’t get hurt by switching divides to multiplies.

Comparison to Logarithms

In the 1.5 JVM, swapping Math.log(x) for x/1000.0 was about ten times slower. In the 1.6 JVM, logs were only about three times slower than division. As I’ve said before, use one of the more recent builds of 1.6 in server mode if you want the fastest JVM for LingPipe.