Optimize month layout dispaying events#2753
Open
TirlaP wants to merge 5 commits into
Open
Conversation
added 3 commits
May 31, 2025 18:32
- Add IsolatedOverlayManager to render popups outside Month component tree - Implement event preprocessing and caching by week - Memoize DateContentRow to prevent unnecessary re-renders - Cache expensive layout calculations in DateSlotMetrics - Optimize event sorting with fast path for single-day events These changes significantly improve performance with 1000+ events by: - Preventing full Month re-renders when showing popups - Reducing layout calculation frequency - Optimizing event distribution across weeks
Contributor
Author
|
@ahmetcengz take a look over this |
Collaborator
|
@TirlaP I like what you've done here. Have you tested as far back as React 17? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Optimize Month view performance for large event datasets
Request by ahmetcengz: #2752
Problem
Month view had severe performance issues with 1000+ events:
Solution
sorting
Performance Results
Changes
No breaking changes - all functionalities remain the same.
@cutterbl can you take a look when you have some time? I tried to test everything to make sure there are no breaking changes.
But as performance goes, this one is pretty big one.
And idk if it's worth on updating this library to functional components and another React version.