Skip to content

armgit / ente

Public Imported from GitHub
0

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

Clean up

Neeraj Guptadf3a6a5a2290
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 0ee9e18d4f..cf8fbc562f 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
@@ -98,14 +98,13 @@ class PersonService {
Future<List<PersonEntity>> _fetchAndCachePersons() async {
logger.finest("reading all persons from local db");
final entities = await entityService.getEntities(EntityType.cgroup);
- // Only use compute for large datasets to avoid overhead
final persons = await Computer.shared().compute(
_decodePersonEntities,
param: {"entity": entities},
+ taskName: "decode_person_entities",
);
- // Populate email cache if needed
_emailToPartialPersonDataMapCache.clear();
- for (var person in persons) {
+ for (PersonEntity person in persons) {
if (person.data.email != null && person.data.email!.isNotEmpty) {
_emailToPartialPersonDataMapCache[person.data.email!] = {
kPersonIDKey: person.remoteID,