Reduce size of LRU cache
This commit is contained in:
parent
d4ebb5c493
commit
248f45c2c3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue