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-5722) [classlib][luni][performance] ObjectInputStream/ObjectOutputStream can use optimized API for accessing fields
Date Mon, 14 Apr 2008 19:31:04 GMT

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

Aleksey Shipilev updated HARMONY-5722:

    Attachment: cl-OIS_OOS-accessors-rc1.patch

 1. Implements setField/getField via accessors, benefit is, security check only once during
accessor initialization
 2. Caches jFieldID in ObjectStreamField.

Gives astonishing +30% boost on 2-core Core2Duo with 2 threads on MT/SerialBench.
8- and 16- thread measurements are due.

This patch is presumably safe and might be committed in this form.

> [classlib][luni][performance] ObjectInputStream/ObjectOutputStream can use optimized
API for accessing fields
> -------------------------------------------------------------------------------------------------------------
>                 Key: HARMONY-5722
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5722
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>            Reporter: Aleksey Shipilev
>         Attachments: cl-ois-readfieldvalues-rc1.patch, cl-OIS_OOS-accessors-rc1.patch,
> For now, OIS and OOS use JNI stubs for accessing fields. It's bad for several reasons:
>  a. infers a lot of JNI calls
>  b. creates a lot of strings when looking up the field id.
> This issue moves setField/getField functionality to more optimized API.

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

View raw message