You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stu Hood (JIRA)" <ji...@apache.org> on 2010/02/06 21:14:27 UTC

[jira] Resolved: (CASSANDRA-611) Fix Findbugs: Replace keySet w entrySet

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

Stu Hood resolved CASSANDRA-611.
--------------------------------

    Resolution: Duplicate

This is the third copy of the issue, but #773 looks like the best effort yet.

> Fix Findbugs: Replace keySet w entrySet
> ---------------------------------------
>
>                 Key: CASSANDRA-611
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-611
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Stu Hood
>            Assignee: Chris Goffinet
>         Attachments: 0001-Replace-keySet-with-entrySet.patch, findbugs-keyset-w-entryset.txt
>
>
> A lot of places in the codebase, we iterate over the  keySet() of a Map, and call get() for each key. For a HashMap, this is still O(N), but when you are dealing with a SortedMap, this is O(NlogN). The list of occurences are attached.
> Fixing this issue should give us a general (minor?) performance boost.
> In order to find unused method parameters for CASSANDRA-608, I ran FindBugs against Cassandra, and found a few interesting issues we ought to explore (but not the unused method params, oi.)

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