Article View: news.software.nntp
Article #23162Re: CRC64 test results
From: Curt Welch
Date: Tue, 11 Nov 1997 00:00
Date: Tue, 11 Nov 1997 00:00
33 lines
2142 bytes
2142 bytes
dillon@best.net (Matt Dillon) wrote:
> The old hash function has a bug in it which causes it to lose earlier
> information during the hash calculation when faced with
> longer-then-usual identical trailers in message-id's. The hash
> function tends to collapse mathematically. I would guess that it's
> dropping about 20 or 30 articles per 600,000 or so from the bug.
That's still very acceptable. When you toss out 200K spam articles
a day with who knows how many false positives, what's another 20 or
30 articles. :)
But this reminds me of a past experence with "roll your own" hash
functions a friend had. He had created a file checksum algorithm
(years before) and was telling me about it. It was used with some
type of revision control system for source code to check for changes
in files. It basically was something simple like:
sum = 0;
<foreach ch in the file>
sum += sum * 26 + ch * 11;
He was a bit shocked when I pointed out that the checksum was
only a function of the last 16 bytes of the file (this was back
in the days of 16 bit Unix systems). Now that's what I call "losing
earlier information".
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<19971111165344.523$sA@newsreader.com>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:
<64a6pf$ejq$1@flea.best.net> <19971111150208.857$oG@newsreader.com> <64afm8$8p6$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <19971111165344.523$sA@newsreader.com>
Subject: Re: CRC64 test results
Date: Tue, 11 Nov 1997 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <64a6pf$ejq$1@flea.best.net> <19971111150208.857$oG@newsreader.com> <64afm8$8p6$1@flea.best.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-mail
X-Deja-AN: 288711963
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
Organization: KCW Consulting
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp