π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Only analyze clustering in debugMode
laurenspriema92081e70302
diff --git a/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart b/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dartindex f62c3259a3..99cd2227ff 100644--- a/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart@@ -2,9 +2,10 @@ import "dart:async";import "dart:developer";import "dart:isolate";import "dart:math" show max;-import "dart:typed_data";+import "dart:typed_data" show Uint8List;import "package:computer/computer.dart";+import "package:flutter/foundation.dart" show kDebugMode;import "package:logging/logging.dart";import "package:ml_linalg/dtype.dart";import "package:ml_linalg/vector.dart";@@ -618,6 +619,7 @@ class FaceClusteringService {}static void _analyzeClusterResults(List<FaceInfo> sortedFaceInfos) {+ if (!kDebugMode) return;final stopwatch = Stopwatch()..start();final Map<String, int> faceIdToCluster = {};