-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Performance] CMD + K is slow and laggy #3601
Comments
Triggered auto assignment to @MariaHCD ( |
Triggered auto assignment to @jliexpensify ( |
Hi @isagoico - I wasn't able to test this on your version, as I have 1.0.71-0. Here's a video of the search feature - it seems to be working and I don't think it's slow (personally): 2021-06-18_09-13-30.mp4Do you think we can close this GH? |
Investigating this now. |
Reopening the issue following @puneetlath feedback. Looks like the Chat Switcher is faster but it's still a bit sluggish.
|
Gonna unassign myself as I can't look into further improvements atm. The chat switcher speed should be related to how many chats you have in general. |
Triggered auto assignment to @NicMendonca ( |
To confirm, it's a lil laggy for me too, it almost always misses the first letter I type |
Triggered auto assignment to @timszot ( |
Reason: Too many re-renders There are 2 workarounds
In conclusion, however, I recommend 2nd one because OptionsSelector component does not need to have the onChangeText which is a root of all issues. Thibault LAURIAONO issue-on-expensify.mp4 |
@Looxor Thanks for the proposal! Could you please clarify a couple of things for me?
Can you please quantify this somehow (eg. how many re-renders are happening, and what number are you trying to optimize for?)
I'm not really following this because I see that
I don't understand this either. Primarily, I'm not sure what "unconditional component" means and I'm also not sure what |
#1 For more convenient, I made a diagram to show you the result. #2 I made a simple screencast for you to show how to do that. expensify-answer-02.mp4#3 I don't understand this either. Primarily, I'm not sure what "unconditional component" means and I'm also not sure what props.sections has to do with the problem (I thought onChangeText was the problem). I am sorry for my typo. I meant the uncontrolled component. Thibault LAURIANO |
I upload this screencast again because above one is crashed. expensify-answer-02.mp4 |
OK, thanks for the additional information. I think I understand what the proposal is now. It was a little difficult seeing what code changes were being made in the video. In the future, it would help to either link directly to a diff of the code changes you are proposing, or to write out the specific changes that would be made (just to help you write better proposals). Looks like the rendering is indeed decreased, but it's hard to know if that will totally fix the problem. It's probably a good place to start though and we can test it out with larger data sets once it's been deployed. 🟢 to hire @Looxor for this one. |
@Looxor hired on Upwork 🎉 |
…CMD+K) Fix Desktop - CMD + K is slow and laggy #3601
…hPageSlowIssue(CMD+K) [CP Staging] Revert "Fix Desktop - CMD + K is slow and laggy #3601"
@nickmurray47 , Can you please provide a demo user credential to check "Search" and "New chat" with many users? |
@Looxor can you please post the same question in the #expensify-open-source channel first? Someone there might already have set up an account for you to use. If no one is available to assist then I can help from there. Thanks. |
@nickmurray47 , |
@Looxor just saw your request and I made the Slack Channel invite request on our end. You should be in the channel shortly. Let me know if you have any other questions. |
Dear @nickmurray47 , |
Hi @jliexpensify, |
@Looxor that appears to be @jliexpensify's actual account, so he's not going to be able to share those credentials with you. Can you please describe what is blocking? Is it a demo account? |
Hi @NicMendonca , thank you for your reply. |
@Looxor thanks for that context! Can you please open up this dialogue in #expensify-open-source to see if someone has credentials or a workaround for you? |
Left a comment on the PR, I ran some tests using my account so we can evaluate from there. |
This issue is not longer a priority. Ended contract in Upwork. Thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should be fast and search should be responsive as soon as the command is used
Actual Result:
Cmd + K is super slow and laggy and is locking up the whole app when used. Search functionality seems completely broken (on desktop staging
Workaround:
No workaround found.
Platform:
Where is this issue occurring?
Web
iOS
Android
Desktop App ✔️
Mobile Web
Version Number: 1.0.68-4
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
(Unable to add video since I don't have MacOS)
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/168172
View all open jobs on Upwork
Upwork job: https://www.upwork.com/jobs/~015673ac7d22fbbd42
From @puneetlath https://expensify.slack.com/archives/C01GTK53T8Q/p1623719515341400
The text was updated successfully, but these errors were encountered: