Skip to content

[Performance] Sidebar Performance at Scale #10248

@marcaaron

Description

@marcaaron

What performance issue do we need to solve?

OptionsListUtils and SidebarLinks are pretty slow and the issues get worse as you increase the number of reports.

As recently discovered in this fire.

What is the impact of this on end-users?

Slow boot time, slow chat switching, in some extreme cases inability to use the app.

List any benchmarks that show the severity of the issue

Proposed solution (if any)

Steps we should take in order of priority...

  • Memoization can help with performing unnecessary re-calculations
  • Make more holistic improvements to how options are calculated to remove other bottlenecks
  • Long term we need to implement some kind of pagination

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

Note: These should be the same as the benchmarks collected before any changes.

Platform:

I assume everywhere.

Version Number: v1.1.87-8
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:

View all open jobs on Upwork

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions