|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: Findbugs-discussThe keyset iterator is just a decorator on top of the entryset iterator, as a map is just a set of entries. Perhaps 1.6 just returns the value from the key, instead of doing the lookup, which would mean it is as fast as the entryset iterator. I can't explain your findings.
-----Original Message----- From: "Sam Beroz" <samberoz@...> Sent: Thursday, July 30, 2009 9:05pm To: findbugs-discuss@... Subject: [FB-Discuss] Findbugs-discuss I've gotten several WMI_WRONG_MAP_ITERATOR warnings complaining that iterating over the keySet and calling get() for each key is inefficient when compared to iterating over the entrySet() for both keys and values. I've tried testing this using Sun's 6u13 jdk and no matter what I try iterating over the keySet and calling get is almost always faster. What am I doing wrong? Can you point me to an example or some sort of explaination behind this bug pattern? Thanks - Sam _______________________________________________ Findbugs-discuss mailing list Findbugs-discuss@... https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss _______________________________________________ Findbugs-discuss mailing list Findbugs-discuss@... https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |