You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Aleksey Shipilev (JIRA)" <ji...@apache.org> on 2008/07/19 10:58:31 UTC
[jira] Created: (HARMONY-5920) [classlib][pack200][performance]
ArrayList usage optimization
[classlib][pack200][performance] ArrayList usage optimization
-------------------------------------------------------------
Key: HARMONY-5920
URL: https://issues.apache.org/jira/browse/HARMONY-5920
Project: Harmony
Issue Type: Improvement
Environment: Latest pack200
Reporter: Aleksey Shipilev
1. Microbenchmark on Sun 1.6.0_05 shows that iterating ArrayList via iterators is 3x slower than iterating via get(). This issue eliminates iterator() in favor of get().
2. ArrayList-s are frequently instantiated with default capacity, even when the storage size is known. This issue sets the default capacities where applicable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-5920) [classlib][pack200][performance]
ArrayList usage optimization
Posted by "Sian January (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sian January reassigned HARMONY-5920:
-------------------------------------
Assignee: Sian January
> [classlib][pack200][performance] ArrayList usage optimization
> -------------------------------------------------------------
>
> Key: HARMONY-5920
> URL: https://issues.apache.org/jira/browse/HARMONY-5920
> Project: Harmony
> Issue Type: Improvement
> Environment: Latest pack200
> Reporter: Aleksey Shipilev
> Assignee: Sian January
> Attachments: pack200-arraylist-v3.patch
>
>
> 1. Microbenchmark on Sun 1.6.0_05 shows that iterating ArrayList via iterators is 3x slower than iterating via get(). This issue eliminates iterator() in favor of get().
> 2. ArrayList-s are frequently instantiated with default capacity, even when the storage size is known. This issue sets the default capacities where applicable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-5920) [classlib][pack200][performance]
ArrayList usage optimization
Posted by "Aleksey Shipilev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Shipilev closed HARMONY-5920.
-------------------------------------
Applied OK, thanks.
> [classlib][pack200][performance] ArrayList usage optimization
> -------------------------------------------------------------
>
> Key: HARMONY-5920
> URL: https://issues.apache.org/jira/browse/HARMONY-5920
> Project: Harmony
> Issue Type: Improvement
> Environment: Latest pack200
> Reporter: Aleksey Shipilev
> Assignee: Sian January
> Fix For: 5.0M7
>
> Attachments: pack200-arraylist-v3.patch
>
>
> 1. Microbenchmark on Sun 1.6.0_05 shows that iterating ArrayList via iterators is 3x slower than iterating via get(). This issue eliminates iterator() in favor of get().
> 2. ArrayList-s are frequently instantiated with default capacity, even when the storage size is known. This issue sets the default capacities where applicable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-5920) [classlib][pack200][performance]
ArrayList usage optimization
Posted by "Sian January (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sian January resolved HARMONY-5920.
-----------------------------------
Resolution: Fixed
Fix Version/s: 5.0M7
Patch applied at r678386. Please check that it was applied as you expected.
> [classlib][pack200][performance] ArrayList usage optimization
> -------------------------------------------------------------
>
> Key: HARMONY-5920
> URL: https://issues.apache.org/jira/browse/HARMONY-5920
> Project: Harmony
> Issue Type: Improvement
> Environment: Latest pack200
> Reporter: Aleksey Shipilev
> Assignee: Sian January
> Fix For: 5.0M7
>
> Attachments: pack200-arraylist-v3.patch
>
>
> 1. Microbenchmark on Sun 1.6.0_05 shows that iterating ArrayList via iterators is 3x slower than iterating via get(). This issue eliminates iterator() in favor of get().
> 2. ArrayList-s are frequently instantiated with default capacity, even when the storage size is known. This issue sets the default capacities where applicable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5920) [classlib][pack200][performance]
ArrayList usage optimization
Posted by "Aleksey Shipilev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Shipilev updated HARMONY-5920:
--------------------------------------
Attachment: pack200-arraylist-v3.patch
pack200-arraylist-v3.patch
Proposed patch, incorporates HARMONY-5919.
Successfully passes JUnit tests.
Gives +10% on unpacking scenario.
> [classlib][pack200][performance] ArrayList usage optimization
> -------------------------------------------------------------
>
> Key: HARMONY-5920
> URL: https://issues.apache.org/jira/browse/HARMONY-5920
> Project: Harmony
> Issue Type: Improvement
> Environment: Latest pack200
> Reporter: Aleksey Shipilev
> Attachments: pack200-arraylist-v3.patch
>
>
> 1. Microbenchmark on Sun 1.6.0_05 shows that iterating ArrayList via iterators is 3x slower than iterating via get(). This issue eliminates iterator() in favor of get().
> 2. ArrayList-s are frequently instantiated with default capacity, even when the storage size is known. This issue sets the default capacities where applicable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.