Skip to content

Commit 9020364

Browse files
committed
记录拷贝图片文件是耗时
1 parent 6f5d9bc commit 9020364

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/MediaConverters/MediaConverters.Lib/Imaging/Optimizations/ImageFileOptimization.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public static async Task<ImageFileOptimizationResult> OptimizeImageFileAsync(Ima
5555
{
5656
var file = imageFile;
5757
var newFilePath = Path.Join(workingFolder.FullName, $"Copy_{Path.GetRandomFileName()}_{imageFile.Name}");
58+
// 拷贝图片文件是耗时的
59+
// Copy new file Cost 179ms.
5860
file.CopyTo(newFilePath);
5961
context.LogMessage($"Copy new file to '{newFilePath}'");
6062
file = new FileInfo(newFilePath);

0 commit comments

Comments
 (0)