π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Reduce face thumbnail lru further
laurenspriemac7e4eeccf40
diff --git a/mobile/lib/utils/face/face_thumbnail_cache.dart b/mobile/lib/utils/face/face_thumbnail_cache.dartindex 63614edc74..117793173f 100644--- a/mobile/lib/utils/face/face_thumbnail_cache.dart+++ b/mobile/lib/utils/face/face_thumbnail_cache.dart@@ -20,10 +20,10 @@ import "package:photos/utils/thumbnail_util.dart";final _logger = Logger("FaceCropUtils");const int _retryLimit = 3;-final LRUMap<String, Uint8List?> _faceCropCache = LRUMap(200);-final LRUMap<String, Uint8List?> _faceCropThumbnailCache = LRUMap(200);+final LRUMap<String, Uint8List?> _faceCropCache = LRUMap(100);+final LRUMap<String, Uint8List?> _faceCropThumbnailCache = LRUMap(100);-final LRUMap<String, String> _personOrClusterIdToCachedFaceID = LRUMap(200);+final LRUMap<String, String> _personOrClusterIdToCachedFaceID = LRUMap(2000);TaskQueue _queueFullFileFaceGenerations = TaskQueue<String>(maxConcurrentTasks: 5,