Skip to content
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

Make HTTP requests in parallel #16

Closed
MatheusRich opened this issue Jan 2, 2023 · 0 comments · Fixed by #19
Closed

Make HTTP requests in parallel #16

MatheusRich opened this issue Jan 2, 2023 · 0 comments · Fixed by #19

Comments

@MatheusRich
Copy link
Owner

MatheusRich commented Jan 2, 2023

When we fetch files from a repo, we (currently) make 4 sequential HTTP requests (for each repo!). This is not ideal since it's a blocking operation. Can we leverage async Ruby to make at least the file fetching requests in parallel?

fetch_file(".ruby-version"),
fetch_file("Gemfile"),
fetch_file("Gemfile.lock"),
fetch_file(".tool-versions")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant