TomMD opened a new pull request #250:
URL: https://github.com/apache/shiro/pull/250


   Iterating over a map then looking up a key guarantees 2x the hash map 
lookups than what is necessary.  See 
[here](https://fbinfer.com/docs/next/all-issue-types#inefficient_keyset_iterator)
 for a more detailed writeup.
   
   This instance was found [using the Muse analysis 
platform](https://console.muse.dev/result/ayorra/shiro/01EFG4TPKZ5KF3KARJ1HC79P3A?search=inefficient&tab=results)
 (which I work on), specifically with the Infer tool.  It appears Apache is 
pro-CI and the analysis worked out of the box and without configuration.  
Perhaps we should [enable it](https://github.com/apps/muse-dev) to run on all 
pull requests, meaning new bugs would receive comments 
([example](https://github.com/TomMD/shiro/pull/2)).
   
    - [X] I hereby declare this contribution to be licenced under the [Apache 
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to