OpenRailAssociation / github-org-manager

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

improve speed of team user lookup #13

Closed mxmehl closed 7 months ago

mxmehl commented 7 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().