Replies: 1 comment 3 replies
-
Hi, and thanks! 😄 My guess is that you are seeing a large number of calls to fetch user avatars, which are cached and stored for 7 days, until I consider then "expired" -- I probably should add a configurable setting to allow that to be bumped up or even just bump the default. Maybe even make it significantly longer, and add a command to reset the cache if needed. Other than the avatars, GitLens queries for PRs associated with the current branch (uncached, since it can easily change), PRs associated with a commit (fetched on-demand based on line annotations/hovers, etc, but cached in memory by commit. Maybe I should store the PRs by commits too, or maybe just the set of requested commit SHAs that don't have PRs to avoid the queries. Although storing the commits SHAs not associated with a PR could in theory change when someone opens a new PR. But even as it is today, these should be a more bounded number of queries. Are you seeing more than that? |
Beta Was this translation helpful? Give feedback.
-
Description
I'd like to first start off and say hello and awesome work here! I think this extension can be very useful!
I don't know all the ins-and-outs of this extension, but I'd like to talk an important topic: rate limits. It seems to me that GitLens uses an significant amount of calls to GitHub's API. So much to the point that the rate limit exceeds it's 5000 calls per hour. GraphQL calls are calculated a little more differently than regular calls.
Perhaps a disclaimer should be brought to the user saying that these limits may be quickly met if installed, as it could block work from many other applications using the endpoint.
Thanks for reading,
jef
Beta Was this translation helpful? Give feedback.
All reactions