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-1493) [classlib][luni] java.util.HashMap:avoid expand backed element array more than once.
Date Tue, 19 Sep 2006 10:55:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1493?page=all ]

Tim Ellison reassigned HARMONY-1493:
------------------------------------

    Assignee: Tim Ellison

> [classlib][luni] java.util.HashMap:avoid expand backed element array more than once.
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1493
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1493
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Leo Li
>         Assigned To: Tim Ellison
>         Attachments: patch.diff
>
>
> Current implementation of HashMap.putAll() in Harmony just calls super.putAll() which
ultimately will call HashMap.put(), while this way might lead to expand the backing data array
more than once if the elements in the added Map is sufficiently large. However, the situation
is able to  be avoided, since we actually know the size of the added Map, thus the expected
HashMap capacity. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message