🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84245

Re: Is getting article by Message ID inherently slower than by Article Number?

#84245
From: Ralph Fox
Date: Tue, 09 Aug 2011 09:45
19 lines
2037 bytes
On Mon, 8 Aug 2011 23:40:17 -0700, in message <j1qkob$jjd$1@snarked.org> 
D. Stussy wrote:

> By message ID:  Most news servers maintain a list of message IDs of all
> [recent] articles on the server which is group independent.  As this is
> generally an UNSORTED list, searching takes order(n * log(n)) time on
> average to find the entry with the article storage pointer.  [Do I have
> that correct, or is it order(n^2)?]

It would take order(n) to search a flat unsorted list

Sorting the list would takes order(n * log(n)) time for an
efficient sort [and order(n^2) for an inefficient sort].  
You would not sort the list just to speed a search for ONE entry.


-- 
Kind regards
Ralph
Technical Details
Message-ID: <f00247h38ihhsj4vp6rbkep26q40f70gbb@4ax.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.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-03.dc1.easynews.com.POSTED!not-for-mail
References: <97vs37plvqd467e3k8ipincoo6qm5a29kc@4ax.com> <he0t37l6cali01lr8rternu2js5hcobnhq@4ax.com> <4m4t37tcfcs9d57e60ctb8gubh0fb42sa7@4ax.com> <6s5147tefb7t0r5pmmnvqoa3j74qh15ukk@4ax.com> <j1qkob$jjd$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <f00247h38ihhsj4vp6rbkep26q40f70gbb@4ax.com>
Subject: Re: Is getting article by Message ID inherently slower than by Article Number?
Date: Tue, 09 Aug 2011 21:45:12 +1200
From: Ralph Fox <-rf-nz-@-.invalid>
References: <97vs37plvqd467e3k8ipincoo6qm5a29kc@4ax.com> <he0t37l6cali01lr8rternu2js5hcobnhq@4ax.com> <4m4t37tcfcs9d57e60ctb8gubh0fb42sa7@4ax.com> <6s5147tefb7t0r5pmmnvqoa3j74qh15ukk@4ax.com> <j1qkob$jjd$1@snarked.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.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-03.dc1.easynews.com.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: No; Y2.038Chaos instead!
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 19
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise
 we will be unable to process your complaint properly.
X-Original-Bytes: 1776