You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for Payment 2024-09-06][Performance] Performance regression in opening the Chat Finder page #47296
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?
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
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:
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext.
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).
@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 😊
Activity
melvin-bot commentedon Aug 13, 2024
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext.
hannojg commentedon Aug 13, 2024
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:
PAY_AT_payment type in bookings #46606Unfortunately 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).
kirillzyusko commentedon Aug 13, 2024
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?
melvin-bot commentedon Aug 16, 2024
Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Aug 20, 2024
Still overdue 6 days?! Let's take care of this!
daledah commentedon Aug 21, 2024
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
isBoldproperty for thelocalPersonalDetailsandrecentReportsfromOptionListUtils.getOptionslike below:Set
isBoldforrecentReportsin here:continue; } reportOption.isSelected = isReportSelected(reportOption, selectedOptions); + reportOption.isBold = shouldUseBoldText(reportOption); if (action === CONST.IOU.ACTION.CATEGORIZE) {and for
localPersonalDetailshereallPersonalDetailsOptions.forEach((personalDetailOption) => { if (personalDetailsOptionsToExclude.some((optionToExclude) => optionToExclude.login === personalDetailOption.login)) { return; } + personalDetailOption.isBold = false; personalDetailsOptions.push(personalDetailOption); });This way we can remove 2
mapand 2 spread operators, which I believe is the main cause of the poor performance.What do you think @kirillzyusko
kirillzyusko commentedon Aug 22, 2024
@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 😊
melvin-bot commentedon Aug 22, 2024
Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
17 remaining items
melvin-bot commentedon Sep 3, 2024
Triggered auto assignment to @bfitzexpensify (
NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.luacmartins commentedon Sep 3, 2024
done
bfitzexpensify commentedon Sep 6, 2024
Offer sent @ikevin127
ikevin127 commentedon Sep 6, 2024
@bfitzexpensify Offer accepted, thank you!