cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-773) Use Map.entrySet and Map.values instead of multiple lookups from Map.keySet
Date Wed, 17 Feb 2010 17:56:28 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834867#action_12834867
] 

Hudson commented on CASSANDRA-773:
----------------------------------

Integrated in Cassandra #357 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/357/])
    

> Use Map.entrySet and Map.values instead of multiple lookups from Map.keySet
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-773
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-773
>             Project: Cassandra
>          Issue Type: Improvement
>    Affects Versions: 0.5
>            Reporter: gabriele renzi
>            Assignee: gabriele renzi
>            Priority: Trivial
>             Fix For: 0.6
>
>         Attachments: CASSANDRA-773-nows.patch, CASSANDRA-773.patch
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> in a few places in the codebase there are loops on Map containers in which the values
are read but the iteration is done on the keys with subsequent calls to map.get(key). 
> Using entrySet/values instead of keySet should bear a little performance improvement
in that kind of loops (10/30%, if I recall correctly) but mostly the patch just gets rid of
a few more FindBugs warnings. All tests still passing

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


Mime
View raw message