-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Expensive render / Takes a second or two to initialize #769
Comments
Yes, it is because of the md5 calculation that adds up time depending on number of messages. Once #705 gets merged, it should be fast |
Not sure about that, I tested that PR and the initial render speed was not affected |
@amitava82 is it possible to avoid doing the MD5? Perhaps just relying on the IDs of the messages and requiring the contents of the message otherwise to be immutable? Or would that not work? |
@Jarred-Sumner I removed the MD5 calculation and just used id's, and I didn't really see a performance difference. |
Any updates on this yet? |
any thoughts here @FaridSafi ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still experiencing this issue. I've added a spinner underneath the I also noticed the Chat screen with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We are having the same problem here. |
Same here ! |
Same here. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The issue still persist! Any workarounds?? anyone ?? |
Can this be reopened? |
It might be happening because the component spends first render on getting the height of the parent view: react-native-gifted-chat/src/GiftedChat.tsx Line 395 in 3900884
|
anyone has fixed or can explain? |
following, experiencing some supreme, UI-blocking slowness with long chat threads (100+ messages) |
Still facing the same issue. Is there any update or any fix? using "react-native-gifted-chat": "^0.16.3", |
Same for me. Experiencing the performance slow down even for simple text messages |
Same |
I see there are already some sponsors on this project, what would it take to push this great library's focus towards performance for a while? |
I'm not sure anyone has identified why the first-pass rendering is so slow. |
Issue Description
GiftedChat is a bit slow to initialize : to show some cached messages. Seems like it's not optimized for performance.
Related report on this comment: #298 (comment) by @amitava82
Steps to Reproduce / Code Snippets
Render a GiftedChat with a dozen messages set.
Expected Results
See messages instantly, without seeing a loader nor a blank screen.
Additional Information
The text was updated successfully, but these errors were encountered: