Article View: news.software.nntp
Article #25094Re: Cleanfeed hashing
From: Kenneth Herron
Date: Sat, 10 Jan 1998 00:00
Date: Sat, 10 Jan 1998 00:00
30 lines
2123 bytes
2123 bytes
In article <000034B5C85E.NO_UCE@mauve.demon.co.uk>, Ian Stirling <000034B5C85E.NO_UCE@mauve.demon.co.uk> wrote: |Kenneth Herron <kherron@campus.mci.net> wrote: |: The CRC is also shorter (~7 characters here, vs. 32 for the md5 hash). |: As I noted before, CRC is an inferior algorithm so some additional | |You can fold the MD5 to any length needed. |Either throw away more than you need, or XOR it with it'self. |32 bits is probably not enough for determining uniqueness, which |AIUI is what you are doing there, for a million articles, you will |get 1 false hit with 40 bits. The length difference is of course a minor issue; key lengths aren't a burden either way. I was only mentioning it in passing. As for uniqueness, the speedtrial program is strictly for benchmarking MD5 vs. checksum, not a complete example of generating hopefully-unique keys. As I acknowledged in the article (part of which you left in above) one needs to construct a composite key using other pieces of information, since the checksum (or indeed any 24- or 32-bit hash) is a bit weak for these purposes. The length of the body (in lines, bytes, or both) is an obvious possibility; since I'm munging the body to do approximately-equal matching, the length of the munged body is also useful. -- Kenneth Herron -- kherron@campus.mci.net No animals were harmed during the production of this message.
Technical Details
Message-ID:
<698c8a$47j$1@news.campus.mci.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<000034AD3C93.NO_UCE@mauve.demon.co.uk> <000034B2C7DA.NO_UCE@mauve.demon.co.uk> <690i1e$i3a$2@news.campus.mci.net> <000034B5C85E.NO_UCE@mauve.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <698c8a$47j$1@news.campus.mci.net> Subject: Re: Cleanfeed hashing Date: Sat, 10 Jan 1998 00:00:00 +0000 From: kherron@campus.mci.net (Kenneth Herron) References: <000034AD3C93.NO_UCE@mauve.demon.co.uk> <000034B2C7DA.NO_UCE@mauve.demon.co.uk> <690i1e$i3a$2@news.campus.mci.net> <000034B5C85E.NO_UCE@mauve.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 314699044 X-Newsposter: trn 4.0-test54 (18 Feb 97) Distribution: inet Organization: CampusMCI Newsgroups: news.software.nntp