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

chore: optimized stats calculation by fetching contribution data in parallel using Promise.all #416

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

FajarKim
Copy link
Owner

No description provided.

…arallel using Promise.all

- Replaced sequential for loop with Promise.all to fetch contributions for each year in parallel.
- Utilized Array.reduce to aggregate total commit contributions, restricted contributions, and pull request review contributions.
- Improved performance by reducing the overall time to retrieve data from GitHub API.
Copy link

vercel bot commented Aug 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
github-readme-profile ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 31, 2024 7:32am

@FajarKim FajarKim merged commit 312c38c into master Aug 31, 2024
8 checks passed
@FajarKim FajarKim deleted the chore_optimized_stats_calculation branch August 31, 2024 07:33
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant