Article View: news.software.nntp
Article #23213Re: CRC64 test results
From: Ian Stirling
Date: Thu, 13 Nov 1997 00:00
Date: Thu, 13 Nov 1997 00:00
30 lines
2713 bytes
2713 bytes
Mark Hittinger <bugs@freebsd.netcom.com> wrote: : dillon@best.net (Matt Dillon) writes: : > 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. : Ah! I am having a similar irritation from message id's with substantially : the same trailers in my own new history code. Using an incomplete piece : of a 'tiger' hash we are seeing a collision in about 1 in 50,000 articles - : I'm struck by the similarity to your numbers above BTW. We must be : knocking heads with the same underlying mathematical issue. If we put : this into production we'd be trading a 30x performance improvement on : history lookups for the statistical loss of 1/50,000 articles. Well, the fundamental limit is the birthday paradox. Basically, if you have N articles, then you need a hash function with N^2 outputs before you get to an even chance of collision. So, if you have a 32 bit hash, you will get about 1/65K article collisions. -- Ian Stirling. Designing a linux PDA, see http://www.mauve.demon.co.uk/ ----- ******* If replying by email, check notices in header ******* ----- Among a man's many good possessions, A good command of speech has no equal.
Technical Details
Message-ID:
<0000346B688D.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-mailReferences:
<64a6pf$ejq$1@flea.best.net> <19971111150208.857$oG@newsreader.com> <64afm8$8p6$1@flea.best.net> <64b64b$hcb@dfw-ixnews1.ix.netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <0000346B688D.NO_UCE@mauve.demon.co.uk> Subject: Re: CRC64 test results Date: Thu, 13 Nov 1997 00:00:00 +0000 From: Ian Stirling <0000346B688D.NO_UCE@mauve.demon.co.uk> References: <64a6pf$ejq$1@flea.best.net> <19971111150208.857$oG@newsreader.com> <64afm8$8p6$1@flea.best.net> <64b64b$hcb@dfw-ixnews1.ix.netcom.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-mail X-Deja-AN: 289336666 X-Mail2News-Path: post-20.mail.demon.net!post.mail.demon.net!mauve.demon.co.uk X-Note: Anti-UCE in effect, replying should work if you are not UCE'ng X-Mail2News-User: Send.NO_UCE@mauve.demon.co.uk X-Warning0: For unsolicited commercial email, sent or causing to be sent to my email address X-Warning1: on this message, I reserve the right to levy a charge for my time and expenses X-Warning2: of up to 100 pounds sterling per message, plus legal, penalty or other costs. X-Complaints-To: abuse@demon.net X-Trace: mail2news.demon.co.uk 879459543 28560 Send.NO_UCE mauve.demon.co.uk Organization: None. Newsgroups: news.software.nntp