Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Reduce size of LRU cache

vishnukvmd248f45c2c335
diff --git a/lib/services/semantic_search/semantic_search_service.dart b/lib/services/semantic_search/semantic_search_service.dart
index b8af659259..001b0ed2d3 100644
--- a/lib/services/semantic_search/semantic_search_service.dart
+++ b/lib/services/semantic_search/semantic_search_service.dart
@@ -28,7 +28,7 @@ class SemanticSearchService {
static final SemanticSearchService instance =
SemanticSearchService._privateConstructor();
static final Computer _computer = Computer.shared();
- static final LRUMap<String, List<double>> _queryCache = LRUMap(50);
+ static final LRUMap<String, List<double>> _queryCache = LRUMap(20);
static const kModelName = "clip";
static const kEmbeddingLength = 512;