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] Assigned: (HARMONY-6487) [classlib][swing] JList and DefaultListModel performance improvement
Date Thu, 01 Apr 2010 09:48:27 GMT

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

Tim Ellison reassigned HARMONY-6487:

    Assignee: Tim Ellison

> [classlib][swing] JList and DefaultListModel performance improvement
> --------------------------------------------------------------------
>                 Key: HARMONY-6487
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6487
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>            Reporter: Pons Rudy
>            Assignee: Tim Ellison
>            Priority: Minor
>         Attachments: 6487.patch
> Some minor changes in JList and DefaultListModel wich will give better performance for
huge data creation or range removal:
>  - add package-private constructors DefaultListModel(Vector) and DefaultListModel(Object[])
to use directly with JList(Vector) and JList(Object[]). Theses contructors call directly the
Vector(Collection) constructor, wich is must faster than the old insertion method.
>  - modify DefaultListModel.removeRange : the old method remove each element one after
the other, and each deletion cause an array copy. New method use instead subList(fromIndex,
toIndex+1).clear(), wich will result on only one array copy.

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

View raw message