warrant-dev / warrant

Warrant is a highly scalable, centralized authorization service based on Google Zanzibar. Use it to define, enforce, query, and audit application authorization and access control.
https://warrant.dev
Apache License 2.0
1.12k stars 39 forks source link

Optimize `ResultSet.Intersect` method #312

Closed kkajla12 closed 6 months ago

kkajla12 commented 6 months ago

Describe your changes

Optimize the ResultSet struct's Intersect method to iterate over the shorter of the two sets being intersected.

Issue number and link (if applicable)

N/A