File tree Expand file tree Collapse file tree
src/MediaConverters/MediaConverters.Lib/Imaging/Optimizations Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments