From 2375287b9141731ff85059493d7dde40befbc28b Mon Sep 17 00:00:00 2001 From: Sunny Chung Date: Wed, 21 Feb 2024 22:30:32 +0800 Subject: [PATCH] update Transport Timeline lazy threshold to 300 lines for performance tuning --- .../multiplatform/hellohttp/ux/TransportTimelineView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/TransportTimelineView.kt b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/TransportTimelineView.kt index cc93d4f6..7fc18171 100644 --- a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/TransportTimelineView.kt +++ b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/TransportTimelineView.kt @@ -289,7 +289,7 @@ fun TransportTimelineView(modifier: Modifier = Modifier, protocol: ProtocolVersi So, Column is still being used when the number of Text elements is small. */ - if ((totalNumLines ?: Int.MAX_VALUE) > 1000) { + if ((totalNumLines ?: Int.MAX_VALUE) > 300) { val scrollState = rememberLazyListState() scrollbarAdapter = rememberScrollbarAdapter(scrollState)