Early stopping for efficiency

This commit is contained in:
laurenspriem
2025-06-11 09:00:18 +05:30
parent 6f7250d179
commit ea217404e9

View File

@@ -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;