You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2007/06/07 17:22:26 UTC
[jira] Resolved: (HARMONY-4051) [classlib][luni] Performance
improvement of java.util.BitSet
[ 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.