c# - Is there a faster way to copy a file other than File.Copy -
A takes approximately 2 minutes to file. Copy (src, dest);
1.6GB file to folder B from folder A to the same drive. To do this, C # /. There is a fast way in .NET code (W / O hardware) - something with the stream, threading etc.?
Will a movie get faster? How about a class that ends a file using a Threadpool, and reads a range of bytes / reads a range of bytes [which seems like a great way to corrupt the file, but Integrity is not a priority here, its speed :-)]
I searched but everyone uses the file. Copy, but it is slow (Slow as a copy of Windows) - I do not want to use any third party tool.
Here are some answers to some questions:
Comparison of time:
& gt; C #: 2.15m & gt; Windows Explorer: 2.53m & gt; Terracopy: 2.26m & gt; Fastcopy: 2.24m
OK, these are not average and I know they can change a bit in later run, but I really thought that a quick copy of the file The method would be because I had assumed that Windows was investigating additional security and integrity: - (
I'm still expecting some good answers (like 'oh yes, files over 1.5 GB < Em> x will be fast if you buffer m and turn off security n ') - OK, I just congratulate on this point.
The following Windows APIs may be helpful if you are interested in creating a symbolic or hardlink instead of an real copy.
Comments
Post a Comment