harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Shipilev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5640) [classlib][luni][performance] ObjectInputStream.resolveClass(ObjectStreamClass ...) optimization
Date Mon, 07 Apr 2008 22:53:25 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aleksey Shipilev updated HARMONY-5640:
--------------------------------------

    Attachment: serial-resolveClass-RC1.patch

serial-resolveClass-RC1.patch
Proposed patch, clean, presumably does not break specification.

1. Saves resolved class in ObjectStreamClass field.
2. Returns already resolved class on fast path.

Eliminates excessive call to classloader. 

> [classlib][luni][performance] ObjectInputStream.resolveClass(ObjectStreamClass ...) optimization
> ------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5640
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5640
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Aleksey Shipilev
>         Attachments: 0008-serial-resolveClass.patch, serial-resolveClass-RC1.patch
>
>
> Current implementation of OIS.resolveClass() tries to map ObjectStreamClass to Class.
To do that, it extracts the class name from OSC and asks ClassLoader for such the class. The
proposal is to cache the Class in OSC field and simply return it on the fastpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message