Page MenuHomePhabricator

[native] Add some memoization to `ChatThreadListSidebar`
ClosedPublic

Authored by atul on Sep 1 2023, 3:58 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Thu, Nov 21, 6:45 AM
Unknown Object (File)
Fri, Nov 15, 11:15 AM
Unknown Object (File)
Sun, Nov 10, 5:15 PM
Unknown Object (File)
Fri, Nov 1, 11:45 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable