TR: PATCH: Optimization and bug

PARMELAN Edouard parmee at postecss.ncrfran.france.ncr.com
Mon Aug 3 11:19:00 PDT 1998


This message is not in the mail archive,
I resend it...

Edouard.

 ----------
De :  PARMELAN Edouard
Date : vendredi 31 juillet 1998 18:43
A : 'kaffe at transvirtual.com'
Objet : PATCH: Optimization and bug

Hi All,

kawa-1.6.54, compile Scheme code to JCode.
The compilation lost lot of time while write the
Constant Pool.  The following optimization patches
let's me win 10% of the total compilation time.

Is any body could make benchmark with and without these
patches for compile all the Klasses.jar ?


Optimizations
 -------------
* java.io.RandomAccessFile
  writeUTF() use makeUTF() as in ObjectOutputStream.

* java.io.DataOutputStream
  writeUTF() use makeUTF() as in ObjectOutputStream.
  writeBytes() use write(byte[], int, int) as in RandomAccessFile.

JDK spec
 --------
* java.lang.Number
  In jdk-1.1.5, byteValue() and shortValue() are
  not abstact methods.  In kaffe they are abstract.


I am not in the mailing-list, please awser directly to:
Edouard.Parmelan at France.NCR.COM


Best Regards,
Edouard

 --
Edouard.Parmelan at France.NCR.COM

 ---
[[ KAFFEP~1.GZ : 2357 dans KAFFEP~1.GZ ]]

The following binary file has been uuencoded to ensure successful
transmission.  Use UUDECODE to extract.

begin 600 KAFFEP~1.GZ
M'XL("-WLP34"`VMA9F9E+G!A=&-H`.U86V_;-A1^MG[%01\:N?)%DAW?$@5I
MDQK(-K1`TW8/61YDF8ZU*I)!4DZR-O]]YY"6+-M2+MN`;44#1[+(<_E(GLMG
MG<53=CN"*)QPGX=,M'_WESX^J7L[3-JGOO3?IW*1RG/)F7_=H at G#^_M_QH>3
M<YB%$1M!>YY<LW:P%(MT$H5!^XL_F['V,S$UE at 9G$N6787P%'&\B3&)P6HXQ
M#6<S:*;0/'N%HAR:'$>A?&7-9K-\IN8,AX.VW6\[77#Z(]L=V4Z-K%N6]8A&
MQP&G-W*<4<<UCH^AZ=H-=P at 6WGIP?&Q`3:0+QLTDE?4#`^X-,)H+'BY]R6!R
M)]G%)01SGW],/GT<F_0-'WD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