β‘ Optimize GitHub API fetch concurrently#7
Conversation
Refactored `fetchUserActivity` to fetch up to 3 GitHub event pages concurrently using `Promise.all()`. This eliminates the sequential delay of requesting and waiting for pages one by one. Co-authored-by: Ap-0007 <200978133+Ap-0007@users.noreply.github.com>
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
π‘ What: Refactored
fetchUserActivityinlib/github.tsto fetch the 3 pages of GitHub events concurrently viaPromise.all(), rather than requesting them sequentially in a loop.π― Why: To improve async I/O performance. The number of pages being requested is small and fixed (max 3), so executing them concurrently is safe and speeds up the total network wait time significantly.
π Measured Improvement: Created a synthetic network benchmark mocking a 100ms delay per request using
axios.get.PR created automatically by Jules for task 5254645454097612945 started by @Ap-0007