Performance comparison between file.copy and filestream copy method
-
22-06-2021 - |
Question
I have a windows application(VB.net) which involves copying a huge number of files to a specified location, and performance is the issue i need to check on. I have two ways of doing this:File.Copy and other using Filestream. Which one of the above option is faster? and is there any other faster way to achieve this?
Solution
File.Copy
is faster(*)
(*) Why would you trust a opinion in a forum? Instead of being here waiting for an answer you could be doing a test to see which method is faster
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow