|Syntactic Confectionery Delight|
How to make a fingerprint from an Objectby jeanluca (Deacon)
|on May 07, 2007 at 13:44 UTC||Need Help??|
jeanluca has asked for the
wisdom of the Perl Monks concerning the following question:
I have a new problem, which is challenging of course, but when implementing the solution it would be nice to know that I've chosen the correct one!
The tool I'm writing has to tell, out of many objects (all instances from the same package), which objects are duplicates. In a loop I can compare the data from 2 objects at the time and determine which objects I have to remove. However this will be too slow, those objects contain a lot of ASCII data! (performance is very important).
The best solution (I think) would be to create a fingerprint once per object which is used in the comparison!
But what is the fastest way to make fingerprints, MD5 ?