From ed1e1db7f21c155dc9d216a33030ca660bdacc4a Mon Sep 17 00:00:00 2001 From: OneWay Date: Mon, 21 Sep 2026 17:43:15 +0800 Subject: [PATCH] chore(dsl): drop stale cache comments --- .../com/example/research/ui/article/DslAnnotatedParser.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/com/example/research/ui/article/DslAnnotatedParser.kt b/app/src/main/java/com/example/research/ui/article/DslAnnotatedParser.kt index 76fc5c3..7d11c8b 100644 --- a/app/src/main/java/com/example/research/ui/article/DslAnnotatedParser.kt +++ b/app/src/main/java/com/example/research/ui/article/DslAnnotatedParser.kt @@ -70,11 +70,6 @@ object DslAnnotatedParser { val endIndex: Int ) - // Cache for applyLazyRefs results to avoid recreating AnnotatedString with links - // Size: 32 blocks - covers typical visible + prefetch range in LazyColumn - // Memory estimate: ~20KB per block average (AnnotatedString with LinkAnnotations) - // Total: ~640KB worst case - // LRU eviction automatic via LruCache private val refCache = object : androidx.collection.LruCache, AnnotatedString>(32) { override fun sizeOf(key: Pair, value: AnnotatedString): Int = 1 }