perf(app-store): replace O(n^2) .find() with O(1) Set deduplication in getLocationGroupedOptions (#29959) - #30008
Conversation
…n getLocationGroupedOptions (calcom#29959)
|
Welcome to Cal.diy, @jihadMo! Thanks for opening this pull request. A few things to keep in mind:
A maintainer will review your PR soon. Thanks for contributing! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughUpdated Merge Risk: ⚪ Minimal · up to This localized change replaces repeated linear searches with Set-based deduplication while preserving the existing output structure; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
Closes #29959
Summary of Changes
.find()and spread-array reallocations ingetLocationGroupedOptionswith anseenOptionsByCategory: Record<string, Set<string>>lookup table inpackages/app-store/server.ts.Verification