Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Remove logs used to assess time taken by ops

ashilkne06dbb0ef1c8
diff --git a/mobile/lib/main.dart b/mobile/lib/main.dart
index fd63288c11..78dcf8ba93 100644
--- a/mobile/lib/main.dart
+++ b/mobile/lib/main.dart
@@ -282,16 +282,11 @@ Future<void> _init(bool isBackground, {String via = ''}) async {
_logger.info("PushService/HomeWidget done $tlog");
unawaited(SemanticSearchService.instance.init());
unawaited(MLService.instance.init());
- final stopwatch = Stopwatch()..start();
await PersonService.init(
entityService,
MLDataDB.instance,
preferences,
);
- _logger.info(
- "PersonService init took ${stopwatch.elapsedMilliseconds}ms",
- );
- stopwatch.stop();
initComplete = true;
_logger.info("Initialization done $tlog");
} catch (e, s) {
diff --git a/mobile/lib/services/machine_learning/face_ml/person/person_service.dart b/mobile/lib/services/machine_learning/face_ml/person/person_service.dart
index 59c2011f06..5c527aa455 100644
--- a/mobile/lib/services/machine_learning/face_ml/person/person_service.dart
+++ b/mobile/lib/services/machine_learning/face_ml/person/person_service.dart
@@ -66,18 +66,12 @@ class PersonService {
}
Future<List<PersonEntity>> getPersons() async {
- final stopwatch = Stopwatch()..start();
final entities = await entityService.getEntities(EntityType.cgroup);
- final res = entities
+ return entities
.map(
(e) => PersonEntity(e.id, PersonData.fromJson(json.decode(e.data))),
)
.toList();
- logger.info(
- "Got ${res.length} persons in ${stopwatch.elapsedMilliseconds}ms",
- );
- stopwatch.stop();
- return res;
}
Future<PersonEntity?> getPerson(String id) {