Based on profiling, rendering UnreadDot takes ~0.8ms. That alone is pretty insignificant but multipled by 5 re-renders (in the "navigate to thread w/ varun scenario) and 29 instances of UnreadDot that adds up to ~116ms. Still not a lot, but pretty low effort to add memoization.
Details
Details
Continues to look as expected. Will do before/after profiling screenshot at end of the stack (Setting up profiler and doing multiple runs can be kind of slow/require restarting metro/etc/etc.) showing before/after.
UnreadDot not re-rendering when ChatThreadList re-renders:
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- arcpatch-D9070 (branched from master)
- Lint
No Lint Coverage - Unit
No Test Coverage