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
Priority: Trivial
Fix For: 0.6
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.