Reduces the cache size for parsed posts.

This commit is contained in:
Vitor Pamplona 2024-02-29 18:50:55 -05:00
parent 3495866017
commit 1efef5887a

View File

@ -26,7 +26,7 @@ import com.vitorpamplona.amethyst.commons.RichTextViewerState
import com.vitorpamplona.quartz.events.ImmutableListOfLists
object CachedRichTextParser {
val richTextCache = LruCache<String, RichTextViewerState>(200)
val richTextCache = LruCache<String, RichTextViewerState>(50)
fun parseText(
content: String,