Skip to content

Commit 463f95b

Browse files
perf(mobile): render Home rows 1,000 ahead instead of 2,000
2,000 kept every row of a 57-row list rendered, so the blank-frame runs measured an unvirtualized list. 1,000 had no blank frames either (2 runs) and uses less memory (550-567 MiB vs 585-622 MiB). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 621103c commit 463f95b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/mobile/src/features/home/HomeScreen.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const ESTIMATED_THREAD_LIST_V2_ROW_HEIGHT = 72;
141141
// Rows away from the viewport are cheap dormant frames (see
142142
// swipe-row-activation), so render further ahead: a fast fling then reaches
143143
// rows that are already built instead of rows still being rebuilt.
144-
const THREAD_LIST_V2_DRAW_DISTANCE = 2_000;
144+
const THREAD_LIST_V2_DRAW_DISTANCE = 1_000;
145145
const PRE_LIQUID_GLASS_BOTTOM_TOOLBAR_HEIGHT = 44;
146146
/**
147147
* Top spacing between the list and the Android custom header. The Android

0 commit comments

Comments
 (0)