Browse Source

Reduce the number of thumbnails cached in memory

Vishnu Mohandas 4 years ago
parent
commit
ff7868d118
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/core/cache/image_cache.dart

+ 1 - 1
lib/core/cache/image_cache.dart

@@ -16,7 +16,7 @@ class FileLruCache {
 }
 
 class ThumbnailFileLruCache {
-  static LRUMap<String, io.File> _map = LRUMap(500);
+  static LRUMap<String, io.File> _map = LRUMap(100);
 
   static io.File get(File file) {
     return _map.get(file.tag());