Skip to content

Commit 9b88ee1

Browse files
committed
Revert "记录实际上创建文件夹耗时"
This reverts commit 713079b.
1 parent d6857cd commit 9b88ee1

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public static async Task<ImageFileOptimizationResult> OptimizeImageFileAsync(Ima
3939

4040
context.LogMessage($"Start optimize image file. File='{imageFile}'");
4141

42-
// Check imageFile Exists Cost 179ms. Total Cost 184ms
4342
if (!File.Exists(imageFile.FullName))
4443
{
4544
// 不能依靠 imageFile.Exists 属性,因为属性可能还没更新
@@ -50,15 +49,7 @@ public static async Task<ImageFileOptimizationResult> OptimizeImageFileAsync(Ima
5049
};
5150
}
5251

53-
stopwatch.Stop();
54-
context.LogMessage($"Check imageFile Exists Cost {stopwatch.ElapsedMilliseconds}ms.");
55-
stopwatch.Restart();
56-
57-
5852
Directory.CreateDirectory(workingFolder.FullName);
59-
stopwatch.Stop();
60-
context.LogMessage($"CreateDirectory workingFolder Cost {stopwatch.ElapsedMilliseconds}ms.");
61-
stopwatch.Restart();
6253

6354
if (copyNewFile)
6455
{

0 commit comments

Comments
 (0)