🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25078

Re: Cleanfeed hashing

#25078
From: Ian Stirling
Date: Fri, 09 Jan 1998 00:00
28 lines
2484 bytes
Kenneth Herron <kherron@campus.mci.net> wrote:
: In article <000034B2C7DA.NO_UCE@mauve.demon.co.uk>,
: Ian Stirling  <000034B2C7DA.NO_UCE@mauve.demon.co.uk> wrote:
: |Kenneth Herron <kherron@campus.mci.net> wrote:
: |: I've been hacking heavily on cleanfeed and have experimented with
: |: perl's built-in CRC generator. CRCs are much faster than MD5, but more
: |: prone to false positives.  Nevertheless, I've had good results
: |
: |Are they actually that much faster?

<snip... They are>
: 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.

-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
----- ******* If replying by email, check notices in header ******* -----
My inner child can beat up your inner child.              Alex Greenbank


Technical Details
Message-ID: <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
References: <000034AD3C93.NO_UCE@mauve.demon.co.uk> <68ucnc$abl$1@news.campus.mci.net> <000034B2C7DA.NO_UCE@mauve.demon.co.uk> <690i1e$i3a$2@news.campus.mci.net>

Show Full Headers
Complete Article Headers
Message-ID: <000034B5C85E.NO_UCE@mauve.demon.co.uk>
Subject: Re: Cleanfeed hashing
Date: Fri, 09 Jan 1998 00:00:00 +0000
From: Ian Stirling <000034B5C85E.NO_UCE@mauve.demon.co.uk>
References: <000034AD3C93.NO_UCE@mauve.demon.co.uk> <68ucnc$abl$1@news.campus.mci.net> <000034B2C7DA.NO_UCE@mauve.demon.co.uk> <690i1e$i3a$2@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-mail
X-Deja-AN: 314226634
Distribution: inet
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-Mail2News-Path: post-10.mail.demon.net!post.mail.demon.net!mauve.demon.co.uk
X-Trace: mail2news.demon.co.uk 884329762 606 Send.NO_UCE mauve.demon.co.uk
Organization: None.
X-Note: Anti-UCE in effect, replying should work if you are not UCE'ng
User-Agent: tin/pre-1.4-971106 (UNIX) (Linux/2.0.30 (i486))
Newsgroups: news.software.nntp