Page MenuHomePhabricator

[native] Add some memoization to `ChatThreadListSidebar`
ClosedPublic

Authored by atul on Sep 1 2023, 3:58 PM.
Tags
None
Referenced Files
F3403006: D9072.id30815.diff
Mon, Dec 2, 11:48 PM
Unknown Object (File)
Sun, Dec 1, 8:55 PM
Unknown Object (File)
Sun, Dec 1, 8:50 PM
Unknown Object (File)
Sun, Dec 1, 6:36 PM
Unknown Object (File)
Thu, Nov 21, 6:51 AM
Unknown Object (File)
Thu, Nov 21, 6:51 AM
Unknown Object (File)
Thu, Nov 21, 6:51 AM
Unknown Object (File)
Thu, Nov 21, 6:50 AM
Subscribers

Details

Summary

Based on profiling flamegraph, it takes ~11ms to re-render ChatThreadListSidebar. If we have 4 ChatThreadListSidebars in the component tree re-rendering 5-6 times (as in "going to thread w/ varun scenario) that's ~220-264ms.


Depends on D9071

Test Plan

Before:

After:

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage