[PATCH] BigInteger - minor performance & cleanup

Pascal S. de Kloe pascal at quies.net
Wed Jul 4 13:26:17 UTC 2007


I couldn't sleep last night so I decided to read the Java source. 
Sending a patch that very evening was a *bad* idea. Sorry about that.
The arraycopy method did not improve things at all.

However, the minor changes actually do work. The attachments 
original.log and patched.log each contain 5 results of Benchmark.java.

OpenJDK Runtime Environment (build 
1.7.0-internal-pascal_03_jul_2007_21_30-b00)
Java flags: "-server -Xnoclassgc"

Happy ending after all?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BigInteger.patch
Type: text/x-diff
Size: 1336 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20070704/09d5a931/BigInteger.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: original.log
Type: text/x-log
Size: 600 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20070704/09d5a931/original.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patched.log
Type: text/x-log
Size: 600 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20070704/09d5a931/patched.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Benchmark.java
Type: text/x-java
Size: 1600 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20070704/09d5a931/Benchmark.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20070704/09d5a931/signature.asc>


More information about the core-libs-dev mailing list