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

后端 未结 8 1903
悲&欢浪女
悲&欢浪女 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:31

    Mark Russinovich would be the authority on this.

    He wrote on his blog an entry Inside Vista SP1 File Copy Improvements which sums up the Windows state of the art through Vista SP1.

    My semi-educated guess would be that File.Copy would be most robust over the greatest number of situations. Of course, that doesn't mean in some specific corner case, your own code might beat it...

提交回复
热议问题