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
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to make a fingerprint from an Object
by nothingmuch (Priest) on May 07, 2007 at 14:01 UTC | |
Re: How to make a fingerprint from an Object
by Moron (Curate) on May 07, 2007 at 17:44 UTC | |
by tinita (Parson) on May 07, 2007 at 20:42 UTC | |
Re: How to make a fingerprint from an Object
by doom (Deacon) on May 08, 2007 at 00:03 UTC | |
by Dervish (Friar) on May 08, 2007 at 03:35 UTC | |
Re: How to make a fingerprint from an Object
by rblasch (Monk) on May 08, 2007 at 16:48 UTC | |
by jeanluca (Deacon) on May 10, 2007 at 08:50 UTC | |
Re: How to make a fingerprint from an Object
by valdez (Monsignor) on May 22, 2007 at 12:52 UTC |
Back to
Seekers of Perl Wisdom