Description
While evaluating an access request, policy engine can quickly skip a policy if the policy doesn't contain references to user/groups or accessType given in the access request. This optimization (method shown below) already exists in master and ranger-0.6 branch; this needs to be back ported to ranger-0.5:
RangerOptimizedPolicyEvaluator.hasMatchablePolicyItem(RangerAccessRequest request)