🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21578

Re: NNRPD resource consumption

#21578
From: Rahul Dhesi
Date: Tue, 16 Sep 1997 00:00
14 lines
1189 bytes
In <5vmdsa$4pt$1@news0.xs4all.nl> johnpc@xs4all.nl (Jan-Pieter Cornet) writes:

>My patches, instead, simple mmap the file and then perform a binary
>search on the overview file to search the correct record.

Note that a binary search can be done with seeks, without doing mmap.
This might save you some memory.

(The standard perl module look.pl implements the algorithm.)
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Technical Details
Message-ID: <5vmmhr$8m5$1@samba.rahul.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
References: <5unqlf$jfa@shell.monmouth.com> <5upqc7$6tf$1@jake.probe.net> <5uq11i$j3e@shell.monmouth.com> <5v12u9$qhd$1@earth.execpc.com> <5vmdsa$4pt$1@news0.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <5vmmhr$8m5$1@samba.rahul.net>
Subject: Re: NNRPD resource consumption
Date: Tue, 16 Sep 1997 00:00:00 +0000
From: c.c.eiftj@16.usenet.us.com (Rahul Dhesi)
References: <5unqlf$jfa@shell.monmouth.com> <5upqc7$6tf$1@jake.probe.net> <5uq11i$j3e@shell.monmouth.com> <5v12u9$qhd$1@earth.execpc.com> <5vmdsa$4pt$1@news0.xs4all.nl>
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: 273042306
Organization: a2i network
X-Comment: Encoded From: line allows replies that preserve original subject
NNTP-Posting-User: dhesi
Newsgroups: news.software.nntp