-
Notifications
You must be signed in to change notification settings - Fork 3k
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
perf: improve heavy operations when user starts to type #31295
perf: improve heavy operations when user starts to type #31295
Conversation
@robertKozik Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@robertKozik are you able to review the PR? 🙂 |
I have it planned for today 👌🏼 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.native.movAndroid: mWeb Chromeandroid.web.moviOS: Nativeios.native.moviOS: mWeb Safariios.web.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for persistance
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.2-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.2-3 🚀
|
Details
This proposes optimisations including removing the
lodashGet
where it takes noticeable milliseconds, refactoring two loops into one ingetOrderedReportIDs
, callupdateUnread
only if unread count is changed from the previous one and other changes which are mentioned in the proposal.This also fixes the regression caused by #28469
Fixed Issues
$ #28359
PROPOSAL: #28359
Tests
Test Steps
Go to any chat and type in a letter
On web and desktop, Pencil icon should be visible in the LHN
On Mobile, you've to navigate back to see the Pencil icon
Removing the entered letter from compose, should remove the Pencil icon from the LHN, hence the draft status
Verify that no errors appear in the JS console
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android-recording.mov
Android: mWeb Chrome
android-web-recording.mov
iOS: Native
ios-recording.mov
iOS: mWeb Safari
ios-web-recording.mov
MacOS: Chrome / Safari
web-recording.mov
MacOS: Desktop
desktop-recording.mov