[PATCH] BigInteger - minor performance & cleanup

Pascal S. de Kloe pascal at quies.net
Wed Jul 4 06:26:17 PDT 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/attachment.bin 
-------------- 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/attachment-0001.bin 
-------------- 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/attachment-0002.bin 
-------------- 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/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
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/attachment-0004.bin 


More information about the core-libs-dev mailing list