-
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
[HOLD for Payment 2024-09-06][Performance] Performance regression in opening the Chat Finder page #47296
Comments
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext. |
Note: The e2e system will report every PR as a regression after the faulty PR. So these PRs were tagged as regression, although they didn't cause it:
Unfortunately the e2e regression system didn't report the PR that introduced the regression as there was a failure for the pipeline (otherwise we could have just assumed that the first reported PR introduced the regression which isn't the case here unfortunately). |
Me and @hannojg tend to think that regression comes from #46645 I tested locally and on my Xiaomi Redmi Note 5 Pro with these changes I have:
And without:
@daledah do you think that you can optimize the code and improve the performance? |
Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still overdue 6 days?! Let's take care of this! |
I came up with the following solution:
App/src/pages/ChatFinderPage/index.tsx Line 127 in be7cb7e
and here: App/src/pages/ChatFinderPage/index.tsx Line 135 in be7cb7e
Set continue;
}
reportOption.isSelected = isReportSelected(reportOption, selectedOptions);
+ reportOption.isBold = shouldUseBoldText(reportOption);
if (action === CONST.IOU.ACTION.CATEGORIZE) { and for allPersonalDetailsOptions.forEach((personalDetailOption) => {
if (personalDetailsOptionsToExclude.some((optionToExclude) => optionToExclude.login === personalDetailOption.login)) {
return;
}
+ personalDetailOption.isBold = false;
personalDetailsOptions.push(personalDetailOption);
}); This way we can remove 2 What do you think @kirillzyusko |
@daledah yeah, I think we can do that 👍 Feel free to submit a PR and if you want I can test everything locally to compare performance before PR gets merged 😊 |
Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@kirillzyusko PR is ready. |
♻️ I was auto-assigned for PR review as C+. I will handle the PR Reviewer Checklist, making sure to test on a HT account and before merge @kirillzyusko can do some performance tests on the PR to ensure the issue was fixed. |
cc @luacmartins |
@luacmartins, @kirillzyusko, @ikevin127, @daledah Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@luacmartins Can we please get a BZ team member assigned here for payments ? Thak you! 🙏 |
Triggered auto assignment to @bfitzexpensify ( |
done |
Offer sent @ikevin127 |
@bfitzexpensify Offer accepted, thank you! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
What performance issue do we need to solve?
Our performance regression system is reporting a performance regression for opening the chat finder page between the last prod release and the current main branch:
What is the impact of this on end-users?
Slow TTI of opening the search page.
List any benchmarks that show the severity of the issue
See screenshot
Proposed solution (if any)
I opened this issue to keep track of the issue and that it needs to be investigated. I think the simplest would be to find the PR that caused the regression or to run a git bisect.
List any benchmarks after implementing the changes to show impacts of the proposed solution (if any)
See screenshot.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number:latest main
Reproducible in staging?: no
Reproducible in production?: no
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:@hannojg
Slack conversation:
View all open jobs on Upwork
Issue Owner
Current Issue Owner: @bfitzexpensifyThe text was updated successfully, but these errors were encountered: