You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pons Rudy (JIRA)" <ji...@apache.org> on 2010/03/29 07:16:27 UTC
[jira] Created: (HARMONY-6487) [classlib][swing] JList and
DefaultListModel performance improvement
[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
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.
[jira] Updated: (HARMONY-6487) [classlib][swing] JList and
DefaultListModel performance improvement
Posted by "Pons Rudy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pons Rudy updated HARMONY-6487:
-------------------------------
Attachment: 6487.patch
> [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
> 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.
[jira] Assigned: (HARMONY-6487) [classlib][swing] JList and
DefaultListModel performance improvement
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (HARMONY-6487) [classlib][swing] JList and
DefaultListModel performance improvement
Posted by "Pons Rudy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pons Rudy updated HARMONY-6487:
-------------------------------
Priority: Minor (was: Major)
> [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
> 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.