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 2007/11/27 16:38:43 UTC
[jira] Created: (HARMONY-5207) [classlib][performance] HashMap
iterators improvements
[classlib][performance] HashMap iterators improvements
------------------------------------------------------
Key: HARMONY-5207
URL: https://issues.apache.org/jira/browse/HARMONY-5207
Project: Harmony
Issue Type: Improvement
Components: Classlib
Reporter: Aleksey Shipilev
Current HashMap iterators implementation can be optimized by specializing iterators. This will save resources over interface call and need in creation of the new objects.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-5207) [classlib][performance] HashMap
iterators improvements
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko reassigned HARMONY-5207:
----------------------------------------
Assignee: Alexey Petrenko
> [classlib][performance] HashMap iterators improvements
> ------------------------------------------------------
>
> Key: HARMONY-5207
> URL: https://issues.apache.org/jira/browse/HARMONY-5207
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Aleksey Shipilev
> Assignee: Alexey Petrenko
> Attachments: HARMONY-5207.patch, HashMapTest.java
>
>
> Current HashMap iterators implementation can be optimized by specializing iterators. This will save resources over interface call and need in creation of the new objects.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-5207) [classlib][performance] HashMap
iterators improvements
Posted by "Aleksey Shipilev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Shipilev closed HARMONY-5207.
-------------------------------------
Closing.
> [classlib][performance] HashMap iterators improvements
> ------------------------------------------------------
>
> Key: HARMONY-5207
> URL: https://issues.apache.org/jira/browse/HARMONY-5207
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Aleksey Shipilev
> Assignee: Alexey Petrenko
> Attachments: HARMONY-5207.patch, HashMapTest.java
>
>
> Current HashMap iterators implementation can be optimized by specializing iterators. This will save resources over interface call and need in creation of the new objects.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5207) [classlib][performance] HashMap
iterators improvements
Posted by "Aleksey Shipilev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Shipilev updated HARMONY-5207:
--------------------------------------
Attachment: HARMONY-5207.patch
HARMONY-5207.patch
Proposed patch.
> [classlib][performance] HashMap iterators improvements
> ------------------------------------------------------
>
> Key: HARMONY-5207
> URL: https://issues.apache.org/jira/browse/HARMONY-5207
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Aleksey Shipilev
> Attachments: HARMONY-5207.patch
>
>
> Current HashMap iterators implementation can be optimized by specializing iterators. This will save resources over interface call and need in creation of the new objects.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-5207) [classlib][performance] HashMap
iterators improvements
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549070 ]
Tim Ellison commented on HARMONY-5207:
--------------------------------------
(new function, must wait until after M4)
> [classlib][performance] HashMap iterators improvements
> ------------------------------------------------------
>
> Key: HARMONY-5207
> URL: https://issues.apache.org/jira/browse/HARMONY-5207
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Aleksey Shipilev
> Assignee: Alexey Petrenko
> Attachments: HARMONY-5207.patch, HashMapTest.java
>
>
> Current HashMap iterators implementation can be optimized by specializing iterators. This will save resources over interface call and need in creation of the new objects.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5207) [classlib][performance] HashMap
iterators improvements
Posted by "Aleksey Shipilev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Shipilev updated HARMONY-5207:
--------------------------------------
Attachment: HashMapTest.java
HashMapTest.java
microbenchmark for the patch
=== Clean Harmony (-Xms128m -Xmx128m -Xem:server_aggressive):
HashMapTest started
map size: 10
cycle count: 10000000
iterations: 10
Iteration 0, put = 13843, keys iteration = 24172, values iteration = 22610, entries iteration = 19375, get = 8718
Iteration 1, put = 13266, keys iteration = 24219, values iteration = 22609, entries iteration = 19328, get = 8344
Iteration 2, put = 13203, keys iteration = 24031, values iteration = 22625, entries iteration = 19391, get = 8281
Iteration 3, put = 13235, keys iteration = 24031, values iteration = 22562, entries iteration = 19375, get = 8328
Iteration 4, put = 13219, keys iteration = 24203, values iteration = 22688, entries iteration = 19344, get = 8296
Iteration 5, put = 13172, keys iteration = 23782, values iteration = 22515, entries iteration = 19375, get = 8391
Iteration 6, put = 13234, keys iteration = 24188, values iteration = 22672, entries iteration = 19437, get = 8281
Iteration 7, put = 13219, keys iteration = 24188, values iteration = 22531, entries iteration = 19375, get = 8375
Iteration 8, put = 13203, keys iteration = 23828, values iteration = 22531, entries iteration = 19344, get = 8344
Iteration 9, put = 13234, keys iteration = 24000, values iteration = 22500, entries iteration = 19375, get = 8344
=== Patched Harmony (-Xms128m -Xmx128m -Xem:server_aggressive):
HashMapTest started
map size: 10
cycle count: 10000000
iterations: 10
Iteration 0, put = 13578, keys iteration = 23469, values iteration = 21937, entries iteration = 19234, get = 8610
Iteration 1, put = 12984, keys iteration = 23406, values iteration = 21844, entries iteration = 18891, get = 8531
Iteration 2, put = 12984, keys iteration = 23360, values iteration = 22000, entries iteration = 18890, get = 8391
Iteration 3, put = 12984, keys iteration = 23532, values iteration = 21859, entries iteration = 18922, get = 8391
Iteration 4, put = 12984, keys iteration = 23375, values iteration = 21937, entries iteration = 18860, get = 8531
Iteration 5, put = 12938, keys iteration = 23484, values iteration = 21812, entries iteration = 18860, get = 8515
Iteration 6, put = 12922, keys iteration = 23438, values iteration = 21812, entries iteration = 19000, get = 8485
Iteration 7, put = 12984, keys iteration = 23328, values iteration = 21922, entries iteration = 18953, get = 8391
Iteration 8, put = 12969, keys iteration = 23421, values iteration = 21954, entries iteration = 18906, get = 8515
Iteration 9, put = 12954, keys iteration = 23406, values iteration = 21953, entries iteration = 18953, get = 8391
So, up to 3% boost for iteration ops.
> [classlib][performance] HashMap iterators improvements
> ------------------------------------------------------
>
> Key: HARMONY-5207
> URL: https://issues.apache.org/jira/browse/HARMONY-5207
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Aleksey Shipilev
> Attachments: HARMONY-5207.patch, HashMapTest.java
>
>
> Current HashMap iterators implementation can be optimized by specializing iterators. This will save resources over interface call and need in creation of the new objects.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-5207) [classlib][performance] HashMap
iterators improvements
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko resolved HARMONY-5207.
--------------------------------------
Resolution: Fixed
The patch has been applied.
> [classlib][performance] HashMap iterators improvements
> ------------------------------------------------------
>
> Key: HARMONY-5207
> URL: https://issues.apache.org/jira/browse/HARMONY-5207
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Aleksey Shipilev
> Assignee: Alexey Petrenko
> Attachments: HARMONY-5207.patch, HashMapTest.java
>
>
> Current HashMap iterators implementation can be optimized by specializing iterators. This will save resources over interface call and need in creation of the new objects.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.