mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
fix: tweak Coil cache configuration
Reduce in-memory cache size and provide a bigger disk cache instead
This commit is contained in:
parent
b24a180780
commit
103f495ee1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue