classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: Patch java/io/ObjectOutputStream.java & ObjectStreamCl


From: Jeroen Frijters
Subject: [cp-patches] FYI: Patch java/io/ObjectOutputStream.java & ObjectStreamClass.java
Date: Wed, 1 Dec 2004 11:10:37 +0100

Hi,

I committed the attached patch to speed up
ObjectOutputStream.writeObject by removing the need to do reflection for
every object.

Regards,
Jeroen

2004-12-01  Jeroen Frijters  <address@hidden>

        * java/io/ObjectOutputStream.java
        (writeObject, callWriteMethod): Replaced reflection with
accessing
        cached info in ObjectStreamClass.
        (getMethod): Removed.
        * java/io/ObjectStreamClass.java
        (findMethod): Added check to make sure the method found has the
        right modifiers.
        (cacheMethods): Added writeReplace and writeObject methods.
        (setFlags): Look at new writeObjectMethod field instead of doing
        reflection again.
        (writeReplaceMethod): New field.
        (writeObjectMethod): New field.

Attachment: ObjectOutputStream.patch
Description: ObjectOutputStream.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]