cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Ribeiro (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CASSANDRA-275) Replace Map.keySet by more efficient Map.entrySet
Date Sat, 04 Jul 2009 16:24:47 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Edward Ribeiro updated CASSANDRA-275:
-------------------------------------

    Attachment: CASSANDRA-275.patch

The patch is not huge but affects many classes, so a slower review of its correctness is highly
recommended. 

> 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
>            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.


Mime
View raw message