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

refactor: simplified isDateInRange func to improve large calendar lis… #2398

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

code-fi
Copy link

@code-fi code-fi commented Jan 22, 2024

When debugging to improve performance for a large calendar list ( eg. 15 months calendar list ), we found the isDateInRange not super optimize as we needed to complete some not-necessary loop action for each month each time we scroll through the calendar list.

Current isDateInRange Next isDateInRange
Screenshot 2024-01-22 at 23 29 56 Screenshot 2024-01-22 at 23 33 35

As you can see, we can get rid of the not-necessary loop action

@stianjensen
Copy link
Contributor

Great! Currently having issues rendering a calendar with more than 3 months of lookahead, without getting framedrops. So anything that makes re-renders faster would be really helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants