Skip to main content
removed tag prefix from title
Link
Filburt
  • 18.1k
  • 14
  • 106
  • 167

C# compare the contents of large files

I need to compare the contents of very large files. Speed of the program is important. I need 100% match.I read a lot of information but did not find the optimal solution. I haveam haveconsidering two choices and everyone has problemsboth problems.

  1. Compare whole file byte by byte - not fast enough for large files.
  2. File Comparison using Hashes - not 100% match the two files with the same hash.

What dowould you suggest? Maybe Maybe I can do something withcould make use of threads? MemoryMappedFile - can Could MemoryMappedFile be helpful?

I need to compare the contents of very large files. Speed of the program is important. I need 100% match.I read a lot of information but did not find the optimal solution. I have two choices and everyone has problems.

  1. Compare whole file byte by byte - not fast enough for large files.
  2. File Comparison using Hashes - not 100% match the two files with the same hash.

What do you suggest? Maybe I can do something with threads? MemoryMappedFile - can be helpful?

I need to compare the contents of very large files. Speed of the program is important. I need 100% match.I read a lot of information but did not find the optimal solution. I am haveconsidering two choices and both problems.

  1. Compare whole file byte by byte - not fast enough for large files.
  2. File Comparison using Hashes - not 100% match the two files with the same hash.

What would you suggest? Maybe I could make use of threads? Could MemoryMappedFile be helpful?

Source Link
FetFrumos
  • 6.1k
  • 9
  • 69
  • 115

C# compare the contents of large files

I need to compare the contents of very large files. Speed of the program is important. I need 100% match.I read a lot of information but did not find the optimal solution. I have two choices and everyone has problems.

  1. Compare whole file byte by byte - not fast enough for large files.
  2. File Comparison using Hashes - not 100% match the two files with the same hash.

What do you suggest? Maybe I can do something with threads? MemoryMappedFile - can be helpful?