perf(ui): parallelize chunked chart download fetches#2269
perf(ui): parallelize chunked chart download fetches#2269ghostdevv merged 1 commit intonpmx-dev:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
8bb1c3b to
2ad2873
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe 🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
graphieros
left a comment
There was a problem hiding this comment.
This is awesome, thank you :)
🔗 Linked issue
N/A
🧭 Context
Longer date ranges and multi-package comparisons pay avoidable network round-trip time because each chunk waits for the previous one to finish. Parallelizing those chunk requests reduces end-to-end chart load time without changing the returned data shape.
📚 Description
This improves chart loading for large npm download date ranges by parallelizing chunked range fetches in
useCharts.Previously, requests larger than the npm downloads API window were split into multiple chunks and fetched sequentially, which made total latency roughly additive across chunks. This change keeps the existing chunking behavior but fetches chunks with bounded concurrency, then merges the results as before.