⚡️ Performance: Parallelize API calls when possible #149
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Feature Request Checklist
main
branch of the repository.Overview
Poking through
src/content-script.ts
, I think I spy a couple API requests that are made in series now but could be made in parallel:// 2. Fetch the repository's default branch, to retrieve replies.yml from
// 3. Fetch the REST API's JSON description of the item
Those two API calls don't rely on data from each other. So 3 doesn't have to wait on 2. We could
await Promise.all
them or similar. Let's do that for a little performance boost! ⚡Additional Info
Marking as blocked on #5 just in case that PR refactors a bunch of things.
The text was updated successfully, but these errors were encountered: