You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Edward Ribeiro (JIRA)" <ji...@apache.org> on 2009/08/01 02:00:14 UTC

[jira] Commented: (CASSANDRA-275) Replace Map.keySet by more efficient Map.entrySet

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

Edward Ribeiro commented on CASSANDRA-275:
------------------------------------------

As far as I remember, this issue should be closed for now and future improvements on Map looping should be done on a case by case basis. 



> Replace Map.keySet by more efficient Map.entrySet
> -------------------------------------------------
>
>                 Key: CASSANDRA-275
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-275
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Edward Ribeiro
>            Priority: Minor
>         Attachments: CASSANDRA-275.patch
>
>
> When you iterates over all key-values of a Map is better to use entrySet() instead of a call to entryKey() and a call to get() inside the loop. It's more efficient. 
> I've seen a patch like this before, but I don't think it was applied at all. 

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