I am working on generating hash values for files as a means of disallowing duplicate files in a small database. As I was researching, I found the following thread: How to generate an MD5 checksum for a file in Android?
Why is the first answer "not efficient" for large files and it is best for small strings, whereas the answer provided by dentex
is better-suited for large files? Is it because of the way the solution was programmed, or is there a caveat with MD5 hashing that I am unaware of?