Reduces the cache size for parsed posts.
This commit is contained in:
@@ -26,7 +26,7 @@ import com.vitorpamplona.amethyst.commons.RichTextViewerState
|
|||||||
import com.vitorpamplona.quartz.events.ImmutableListOfLists
|
import com.vitorpamplona.quartz.events.ImmutableListOfLists
|
||||||
|
|
||||||
object CachedRichTextParser {
|
object CachedRichTextParser {
|
||||||
val richTextCache = LruCache<String, RichTextViewerState>(200)
|
val richTextCache = LruCache<String, RichTextViewerState>(50)
|
||||||
|
|
||||||
fun parseText(
|
fun parseText(
|
||||||
content: String,
|
content: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user