File.Copy vs. Manual FileStream.Write For Copying File

后端 未结 8 1847
悲&欢浪女
悲&欢浪女 2020-11-27 04:41

My problem is in regards file copying performance. We have a media management system that requires a lot of moving files around on the file system to different locations inc

8条回答
  •  春和景丽
    2020-11-27 05:07

    Try to remove the Flush call, and move it to be outside the loop.

    Sometimes the OS knows best when to flush the IO.. It allows it to better use its internal buffers.

提交回复
热议问题