You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As pointed out in this tweet, if you have many stars fetching all the content takes quite a while, and it could also hit a rate limit on github API.
And for a 15sec video maybe it won't even be that noticeable if say we try to render all unique 60k stargazers,
Instead we can add a flag or a "maxFetchCount" param to limit the fetch and after a while the video can just loop over or randomly pick stargazers in the middle to pad out the 15sec.
For this to work I think a better approach would be:
Say I have 50k stars:
We fetch first 10k stargazers
Pad out the middle with random stargazers
We fetch last 10k stargazers
We put these first/last stargazers as is so that the order is accurate in the video, and in the middle we can pad the stargazers by randomly picking stargazers.
LMK if this is something you will be interested in or you think it's worth adding.
The text was updated successfully, but these errors were encountered:
As pointed out in this tweet, if you have many stars fetching all the content takes quite a while, and it could also hit a rate limit on github API.
And for a 15sec video maybe it won't even be that noticeable if say we try to render all unique 60k stargazers,
Instead we can add a flag or a "maxFetchCount" param to limit the fetch and after a while the video can just loop over or randomly pick stargazers in the middle to pad out the 15sec.
For this to work I think a better approach would be:
Say I have 50k stars:
We put these first/last stargazers as is so that the order is accurate in the video, and in the middle we can pad the stargazers by randomly picking stargazers.
LMK if this is something you will be interested in or you think it's worth adding.
The text was updated successfully, but these errors were encountered: