fix: tweak Coil cache configuration

Reduce in-memory cache size and provide a bigger disk cache instead
This commit is contained in:
Harsh Shandilya 2024-11-05 13:11:39 +05:30
parent b24a180780
commit 103f495ee1

View file

@ -39,7 +39,7 @@ class CoilAppPlugin @Inject constructor() : AppPlugin {
}
private companion object {
private const val MEMORY_CACHE_RATIO = 0.25
private const val DISK_CACHE_MAX_SIZE = 25L * 1024 * 1024 // 25 MB
private const val MEMORY_CACHE_RATIO = 0.10 // 10% of application heap
private const val DISK_CACHE_MAX_SIZE = 100L * 1024 * 1024 // 100 MB
}
}