OpenRailAssociation / github-org-manager

Manage a GitHub organization, its members, teams, repository permissions and more
Apache License 2.0
5 stars 2 forks source link

improve speed of team user lookup #13

Closed mxmehl closed 5 months ago

mxmehl commented 5 months ago

Fixes #12

With the OpenRail data, it reduces the API calls from 180 to 143, so 37 calls saved. It reduces the time needed for a whole run from 77 seconds to 60 seconds, so 17 seconds saved.

In organisations with less sub-teams, the advantage will even be higher, as we spend a lot of calls for .has_in_members().