Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][ml] reduce parallel download to 5 for ios

Neeraj Gupta6db9a6bedcf1
diff --git a/mobile/lib/services/machine_learning/ml_service.dart b/mobile/lib/services/machine_learning/ml_service.dart
index 7fb523a917..db0bdfd5c0 100644
--- a/mobile/lib/services/machine_learning/ml_service.dart
+++ b/mobile/lib/services/machine_learning/ml_service.dart
@@ -57,7 +57,7 @@ class MLService {
bool _isIndexingOrClusteringRunning = false;
bool _shouldPauseIndexingAndClustering = false;
- static const int _fileDownloadLimit = 10;
+ static final int _fileDownloadLimit = Platform.isIOS ? 5 : 10;
static const _kForceClusteringFaceCount = 8000;
/// Only call this function once at app startup, after that you can directly call [runAllML]