> "...while the Java version uses the C/assembly language GMP library
> that has been tuned with hand-coded assembly language"
>
> This is extremely incorrect, btw you're not the first person I had to
> correct wrt Sun Java's BigInteger/BigDecimal performance. Sun's JVM
> doesn't use libgmp.
Nobody said that Sun's JVM used libgmp.
The pidigits program in the language shootout *uses* libgmp, read the
source code:
http://shootout.alioth.debian.org/gp4/benchmark.php?test=pidigits&lang=java&id=2
Here is a small snippet, in case the implementation later changes:
static {
System.loadLibrary("jgmplib");
}
private native void mpz_init();
private native void mpz_clear(long src);
private static native void mpz_mul_si(long dest, long src, int val);
Not worth replying to the rest, as it is clearly talking about
something different.
Miguel