🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55541

Re: INN: flushing trace statments

#55541
From: Jeffrey M. Vinocur
Date: Fri, 07 Dec 2001 20:05
43 lines
2521 bytes
In article <3C10FA9A.875F2364@unidata.ucar.edu>,
Anne Wilson  <anne@unidata.ucar.edu> wrote:
>"Jeffrey M. Vinocur" wrote:
>> Anne Wilson  <anne@unidata.ucar.edu> wrote:
>>
>> >I only run one copy now, but will run multiple copies in the future.
>> 
>> But isn't it a channel feed?  That shouldn't be running multiple
>> copies, presumably.
>
>Yes, it is a channel feed.  But I expect that there will be different
>newsfeeds sites invoking my decoder, and thus there will be multiple
>copies.

Ah.

(Of course, if there are only a few, you could open a log file
for each based on the argument you're passing it.)


>However, this reveals a hole in my understanding.  I coded my decoder to
>read from stdin, process one article, then quit.  I presume I need to
>modify this to continually read from stdin in order to avoid the
>overhead of stopping and starting, right?

If you want to use a channel feed, it ought to be a long-running
process.  However, there's nothing immoral about using a program
feed -- if the overhead to starting your program is relatively
low, and you expect to get articles relatively infrequently, then
it's not a big deal.


For example, if you get an article to decode every ten minutes,
and decoding takes two minutes, and launching your program takes
ten seconds per use, you may not want to bother optimizing it for
long-running usage.



-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <9ur7ej$1ro$2@marduk.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail
References: <3C0EC505.81AF25D4@unidata.ucar.edu> <3C0FBB96.CFDB8CEC@unidata.ucar.edu> <9uostv$7f2$2@marduk.litech.org> <3C10FA9A.875F2364@unidata.ucar.edu>

Show Full Headers
Complete Article Headers
Message-ID: <9ur7ej$1ro$2@marduk.litech.org>
Subject: Re: INN: flushing trace statments
Date: Fri, 07 Dec 2001 20:05:39 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <3C0EC505.81AF25D4@unidata.ucar.edu> <3C0FBB96.CFDB8CEC@unidata.ucar.edu> <9uostv$7f2$2@marduk.litech.org> <3C10FA9A.875F2364@unidata.ucar.edu>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Lithium Technologies
Lines: 42
Sender: jeff@litech.org
NNTP-Posting-Host: marduk.litech.org
X-Trace: marduk.litech.org 1007755539 1912 128.84.154.54 (7 Dec 2001 20:05:39 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Fri, 7 Dec 2001 20:05:39 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)