Hotspot loves PHP.reboot

John Rose john.r.rose at oracle.com
Wed Sep 7 00:08:28 PDT 2011


On Sep 7, 2011, at 12:00 AM, Per Bothner wrote:

> I assume this is one reason why Kawa's IntNum is (mostly) faster than 
> BigInteger.

Yes, that's probably true.

Here's a dirty secret:  As you can see from the OpenJDK sources, BigDecimal, but not BigInteger, has this optimization (see private field BigDecimal.intCompact).  Why BigDecimal but not BigInteger?  Because specjbb2000 uses BigDecimal.

(OTOH, an imperfect metric like specjbb2000 is far better than no metric at all, for driving competition.)

-- John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110907/4eef7835/attachment.html 


More information about the mlvm-dev mailing list