🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #3165

How to write a newsreader ?

#3165
From: Dominik Zimmermann
Date: Sat, 26 Sep 1992 21:59
9 lines
1275 bytes
As a semester-exercise for a unix course I have to write a very simpel newsreader.
Up to now I haven't been really into news and all that stuff. My problem is this:
The algorithm, wich searches the news-directories ( for example for creating the .newsrc-file ), takes about 5 min to do so, using opendir(), readdir() etc.
I don't think that's the optimum speed achievable, especially since other newsreaders are much faster.
I would be very happy about any advice on how to write an efficient algorithm as well as any comment that helps me to understand the whole thing.

Greetings

Dominik
Technical Details
Message-ID: <O2D730U@mailgzrz.tu-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!math.fu-berlin.de!dct.zrz.tu-berlin.de!zrz.tu-berlin.de!opal.cs.tu-berlin.de!nick

Show Full Headers
Complete Article Headers
Message-ID: <O2D730U@mailgzrz.tu-berlin.de>
Subject: How to write a newsreader ?
Date: Sat, 26 Sep 1992 21:59:32 GMT
From: nick@cs.tu-berlin.de (Dominik Zimmermann)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!math.fu-berlin.de!dct.zrz.tu-berlin.de!zrz.tu-berlin.de!opal.cs.tu-berlin.de!nick
Newsgroups: news.software.nn
Sender: news@mailgzrz.tu-berlin.de (News Manager)
Nntp-Posting-Host: sand.cs.tu-berlin.de
Organization: Technical University of Berlin, Germany
Lines: 10