mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 09:42:53 +00:00
perf(app): limit native chat mount batches
Whole-message Markdown rows measure synchronously during Fabric layout. Render fewer history rows per batch and retain a smaller offscreen window so opening a chat does not measure twelve history rows at once.
This commit is contained in:
@@ -591,8 +591,11 @@ function NativeStreamViewport(props: StreamRenderInput & { strategy: StreamStrat
|
|||||||
scrollEventThrottle={16}
|
scrollEventThrottle={16}
|
||||||
onContentSizeChange={handleContentSizeChange}
|
onContentSizeChange={handleContentSizeChange}
|
||||||
maintainVisibleContentPosition={maintainVisibleContentPosition}
|
maintainVisibleContentPosition={maintainVisibleContentPosition}
|
||||||
initialNumToRender={12}
|
// A history row can contain an entire long reply. Keep synchronous native
|
||||||
windowSize={10}
|
// Markdown measurement bounded while FlatList fills the surrounding window.
|
||||||
|
initialNumToRender={2}
|
||||||
|
maxToRenderPerBatch={2}
|
||||||
|
windowSize={5}
|
||||||
removeClippedSubviews={false}
|
removeClippedSubviews={false}
|
||||||
scrollEnabled={scrollEnabled}
|
scrollEnabled={scrollEnabled}
|
||||||
showsVerticalScrollIndicator
|
showsVerticalScrollIndicator
|
||||||
|
|||||||
Reference in New Issue
Block a user