-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rate limit #6
Comments
Check here: Lines 7 to 11 in 3e697cc
bottleneck to rate limit requests as per Github's recommendation :)
About batching—unfortunately Github does not offer any way to get the most recent commit of a whole folder, only per file. That's what all those requests are about. We're doing our best here to de-prioritize prefetches for the actual http request as well as the limiter batching, so they don't clog up the queue. |
You can't magically increase the maximum limit per hour though. I think disabling the file viewer would help alot. Honestly I think I won't be using this extension if it keeps including the file preview. I like the treeview but the file preview is an additional concern that I don't think is useful. The file preview is the feature responsible for the api requests per file, right? Could we disable that? |
Hm good point. Each file or folder spawns a request to Also, every file spawns a request for the file's contents after 200ms of hovering over the file name cell of the table. I'd be open to accept a PR which adds support for disabling the file preview, but I'm not really interested in doing it myself at this point. In the end, rather than causing big changes for a potential issue, I'd rather wait and see whether anyone actually hits the 5000 requests per hour :) |
Could you re-open the issue then? Otherwise I'll likely forget about it.
Keep in mind that the rate limit is shared by user not token. Refined github also needs a token to work. So it's not really about 5000 requests to display the tree but whatever you have left after your existing work on the GitHub API. |
All great points! |
At first let me thank you for this awesome extension! Really levels up the GitHub experience.
I'm a bit concerned about the rate limit. It seems to send a request for every file that is viewed. Is this a limitation of the github API or is it possible to fetch files in batches (e.g. by directory) instead of fetching each file?
The text was updated successfully, but these errors were encountered: