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)
Mon, Dec 30, 8:55 AM
Unknown Object (File)
Mon, Dec 30, 8:55 AM
Unknown Object (File)
Mon, Dec 30, 8:55 AM
Unknown Object (File)
Mon, Dec 30, 8:55 AM
Unknown Object (File)
Mon, Dec 30, 8:53 AM
Unknown Object (File)
Dec 6 2024, 12:46 PM
Unknown Object (File)
Dec 2 2024, 11:48 PM
Unknown Object (File)
Dec 1 2024, 8:55 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