Do you know where your variables are? | |
PerlMonks |
How to make a fingerprint from an Objectby jeanluca (Deacon) |
on May 07, 2007 at 13:44 UTC ( [id://613937]=perlquestion: print w/replies, xml ) | Need Help?? |
jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks 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 ? Thnx LuCa
Back to
Seekers of Perl Wisdom
|
|