App: [HOLD for payment 2024-04-05] [$500] [Performance] Memoize SidebarLinksData to reduce the getOrderedReportIDs calls

Coming from the Callstack performance audit

From the hermes profile trace, we see that getOrderedReportIDs from Sidebarlinks takes about ~8 seconds and it happens in 3 occurrences. Which means we have getOrderedReportIDs being called for roughly 3 times. We can reduce it to 2 times only by adding memoization to Sidebarlinks . This reduces the app startup by ~2.5 seconds, which is a huge reduction. Details for the implementation can be seen in the commit

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011e08e65659afcb69
  • Upwork Job ID: 1772400240247611392
  • Last Price Increase: 2024-03-25
Issue OwnerCurrent Issue Owner: @alexpensify

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 19 (12 by maintainers)

Most upvoted comments

@alexpensify accepted, thanks.

$500 to @c3024 only