πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84251

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

#84251
From: Russ Allbery
Date: Tue, 09 Aug 2011 17:38
16 lines
2217 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Please have a look at the dbz(3) documentation for more information.
> Searching is usually fast for "old" messages.  I haven't look at the
> algorithm involved but I bet it is o(log(n)) or maybe o(1)?

dbz is basically a giant hash table with chaining (well, something akin to
chaining that's actually slightly more pessimistic; basically, the chains
involve using the next hash slot), so it's somewhere between O(1) and
O(log(n)) depending on how deep the chaining is.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87mxfilc27.fsf@windlord.stanford.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
References: <97vs37plvqd467e3k8ipincoo6qm5a29kc@4ax.com> <he0t37l6cali01lr8rternu2js5hcobnhq@4ax.com> <4m4t37tcfcs9d57e60ctb8gubh0fb42sa7@4ax.com> <6s5147tefb7t0r5pmmnvqoa3j74qh15ukk@4ax.com> <j1qkob$jjd$1@snarked.org> <j1rp3r$9fk$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87mxfilc27.fsf@windlord.stanford.edu>
Subject: Re: Is getting article by Message ID inherently slower than by Article Number?
Date: Tue, 09 Aug 2011 10:38:56 -0700
From: Russ Allbery <rra@stanford.edu>
References: <97vs37plvqd467e3k8ipincoo6qm5a29kc@4ax.com> <he0t37l6cali01lr8rternu2js5hcobnhq@4ax.com> <4m4t37tcfcs9d57e60ctb8gubh0fb42sa7@4ax.com> <6s5147tefb7t0r5pmmnvqoa3j74qh15ukk@4ax.com> <j1qkob$jjd$1@snarked.org> <j1rp3r$9fk$1@news.trigofacile.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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 16
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: usenet-its.stanford.edu 1312911536 21685 171.67.225.134 (9 Aug 2011
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock: sha1:vt86MnFEqlGTxHeM1Ekh/1nIfWM=
X-Original-Bytes: 2023