I'm looking for an efficient way to tell whether or not a string (or a file) has changed since the last time we looked at it.
So, we run this function against 1,000,000 files/strings (each file/string is less than 1000 bytes), and store the output for each file/string.
I'll then wait a few days and run this again. I need to find out whether or not each file has changed or not...
Should I calculate CRC32s for each file? MD5? Something else more efficient?
Is CRC32 good enough for telling me whether or not a file/string has changed?
EDIT It has to work both both files and strings, so timestamps on the files are out of the question.