Skip to content

armgit / ente

Public Imported from GitHub
0

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

perf(dart): avoid redundant embedding list copies in rust ml flow

laurenspriem92e1c7dcca3a
diff --git a/mobile/apps/photos/lib/utils/ml_util.dart b/mobile/apps/photos/lib/utils/ml_util.dart
index 7ae705f744..d3f09552e4 100644
--- a/mobile/apps/photos/lib/utils/ml_util.dart
+++ b/mobile/apps/photos/lib/utils/ml_util.dart
@@ -735,7 +735,7 @@ Future<MLResult> analyzeImageRust(Map args) async {
detection: detection,
blurValue: face.blurValue,
alignment: alignment,
- embedding: face.embedding.toList(growable: false),
+ embedding: face.embedding,
);
}).toList(growable: false);
}
@@ -747,7 +747,7 @@ Future<MLResult> analyzeImageRust(Map args) async {
}
result.clip = ClipResult(
fileID: enteFileID,
- embedding: rustClip.embedding.toList(growable: false),
+ embedding: rustClip.embedding,
);
}