Skip to content

[HOLD for payment 2023-10-30] [Performance] Chat switching hermes profiling #29935

Closed

Description

@janicduplessis

What performance issue do we need to solve?

Use hermes profile to find slow javascript code during chat switching.

What is the impact of this on end-users?

Switching chat needs to be as fast as possible.

List any benchmarks that show the severity of the issue

Here's the profile:

image

getLastVisibleAction is slow because it creates JS date objects for each messages.

Proposed solution (if any)

Do not use date objects to sort report actions.

List any benchmarks after implementing the changes to show impacts of the proposed solution (if any)

image

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: 1.3.87-1
Reproducible in staging?: Y
Reproducible in production?: Y
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:
Slack conversation:

View all open jobs on Upwork

Issue OwnerCurrent Issue Owner: @peterdbarkerUK

Activity

  1. melvin-bot commented on Oct 19, 2023

    @melvin-bot

    Triggered auto assignment to @srikarparsi (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  2. self-assigned this
    on Oct 19, 2023
  3. mountiny commented on Oct 19, 2023

    @mountiny
    Contributor

    I will take this one on as well from the performance room, adding it to the project

  4. added
    Bug
    on Oct 19, 2023
  5. melvin-bot commented on Oct 19, 2023

    @melvin-bot

    Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  6. melvin-bot commented on Oct 19, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  7. added
    Reviewing
    on Oct 20, 2023
  8. 13 remaining items

  9. added
    Bug
    on Nov 1, 2023
  10. melvin-bot commented on Nov 1, 2023

    @melvin-bot

    Triggered auto assignment to @peterdbarkerUK (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  11. melvin-bot commented on Nov 1, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  12. deleted a comment from melvin-bot on Nov 1, 2023
  13. mountiny commented on Nov 1, 2023

    @mountiny
    Contributor

    This is ready for payment $500 to @rushatgabhane now need for checklist as this was a performance improvement

  14. peterdbarkerUK commented on Nov 2, 2023

    @peterdbarkerUK
    Contributor
  15. rushatgabhane commented on Nov 3, 2023

    @rushatgabhane
    Member

    @peterdbarkerUK we can close the upwork offer. I requested payment on new dot here https://staging.new.expensify.com/r/7033374268782722

  16. JmillsExpensify commented on Nov 3, 2023

    @JmillsExpensify
    Contributor

    $500 payment approved for @rushatgabhane based on comment above.

  17. peterdbarkerUK commented on Nov 6, 2023

    @peterdbarkerUK
    Contributor

    Thanks guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions