Page MenuHomePhabricator

[native] Add some memoization to `ChatThreadListSidebar`
ClosedPublic

Authored by atul on Sep 1 2023, 3:58 PM.
Tags
None
Referenced Files
F3043152: D9072.id30815.diff
Tue, Oct 22, 2:17 PM
F3043151: D9072.id30813.diff
Tue, Oct 22, 2:17 PM
F3043150: D9072.id30712.diff
Tue, Oct 22, 2:17 PM
F3043129: D9072.id.diff
Tue, Oct 22, 2:17 PM
F3036098: D9072.diff
Tue, Oct 22, 5:04 AM
Unknown Object (File)
Fri, Oct 18, 8:42 PM
Unknown Object (File)
Wed, Sep 25, 11:44 PM
Unknown Object (File)
Sep 13 2024, 5:39 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