🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66280

Re: Removing duplicates in inn 2.2 tradspool

#66280
From: Jeffrey M. Vinocur
Date: Tue, 22 Jul 2003 11:21
27 lines
2193 bytes
In article <bfhttq$n2d$1@allhats.xcski.com>,
Paul Tomblin <ptomblin@xcski.com> wrote:
>In a previous article, jeff@litech.org (Jeffrey M. Vinocur) said:
>
>>It shouldn't be but a little bit of Perl, I think, since you only
>>need to consider the files in a single directory at any given
>>time.
>
>Call me an old traditionalist, but I use find and a script: [...]
>
>I'm sure I could have done it more efficiently or something in perl, but
>it was faster to write it this way.

Well, whatever works.  You got quadratic runtime when linear was
quite possible, so yes, it would have been much faster to use a
different algorithm (for any substantial dataset, anyway).  Not
that you couldn't do that in a shell script, of course.

(I've given up on programming shell scripts, personally; there
are no convincing benefits, and the restrictions are a constant
annoyance.  So if it can't be done entirely as a pipeline, Perl
time.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <bfj6o2$c6c$3@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!in.100proofnews.com!in.100proofnews.com!cox.net!news-xfer.cox.net!news.litech.org!not-for-mail
References: <bfh9ai$ent$1@allhats.xcski.com> <bfhkca$h9h$2@puck.litech.org> <bfhttq$n2d$1@allhats.xcski.com>

Show Full Headers
Complete Article Headers
Message-ID: <bfj6o2$c6c$3@puck.litech.org>
Subject: Re: Removing duplicates in inn 2.2 tradspool
Date: Tue, 22 Jul 2003 11:21:38 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <bfh9ai$ent$1@allhats.xcski.com> <bfhkca$h9h$2@puck.litech.org> <bfhttq$n2d$1@allhats.xcski.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.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!in.100proofnews.com!in.100proofnews.com!cox.net!news-xfer.cox.net!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 27
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1058872898 12492 66.218.0.75 (22 Jul 2003 11:21:38
 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Tue, 22 Jul 2003 11:21:38 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)