From 6db9a6bedcf1e9d47c3faa00e8566e4c74908060 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:03:06 +0530 Subject: [PATCH] [mob][ml] reduce parallel download to 5 for ios --- mobile/lib/services/machine_learning/ml_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]