Early stopping for efficiency
This commit is contained in:
@@ -925,6 +925,9 @@ class SearchService {
|
||||
);
|
||||
|
||||
for (final clusterId in sortedClusterIds) {
|
||||
if (limit != null && facesResult.length >= limit) {
|
||||
break;
|
||||
}
|
||||
final files = clusterIdToFiles[clusterId]!;
|
||||
final String clusterName = clusterId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user