harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-4051) [classlib][luni] Performance improvement of java.util.BitSet
Date Thu, 07 Jun 2007 15:22:26 GMT

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

Tim Ellison resolved HARMONY-4051.

    Resolution: Fixed

Thanks Robert.

I applied a modified version of your code to the LUNI module at repo revision r545213.

Beside cosmetic/style changes, I also reduce the visibility of #getActualArrayLength and #pop
methods to private since they cannot be part of the public API.

Please check that the commit resolves this issue for you.

> [classlib][luni] Performance improvement of java.util.BitSet
> ------------------------------------------------------------
>                 Key: HARMONY-4051
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4051
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>            Reporter: Robert Hu
>            Assignee: Tim Ellison
>         Attachments: BitSetTest.golden.ser, HARMONY-4051.diff, patch.sh
> The performance of java.util.BitSet can be improved.
> After some modification, the performance is improved:
> By running unit test of BitSet for 2000 times,  the time can be reduced from 40.671s
to 39.813s.
> At the same time, this improvement also fix a problem of serialization.
> Some test cases were also added, to ensure the correctness of improvement.

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

View raw message