Article View: news.software.nntp
Article #26527Re: Diablo progress report
From: Matt Dillon
Date: Thu, 26 Feb 1998 00:00
Date: Thu, 26 Feb 1998 00:00
41 lines
2371 bytes
2371 bytes
:>
:>Ah, right. Sortof like hashing, but not quite. How do you determine the
:>number 1000? Will that be a system-wide constant? We currently have some
:>groups online with over 10000 articles in them (long expiry on busy groups,
It's a per-group constanat, so particular groups can be 'resized'
(once I write the utility software, that is). There aren't too many
groups with more then 10,000 articles in them, and there are especially
not too many groups where users would actually go through more then
a few thousand articles before giving up and hitting 'catchup'. And,
probably most importantly, 99.9% of news users are more concerned about
getting news quickly and completely and less concerned about being able
to access older archives. Deja News fills that old-article nitch quite
nicely.
It's not a hash table, it's a circular, linear 'loop', something like
this:
slot = artno % (overview_index_file_size / sizeof(slot_structure_size))
ary = memory_map(overview_index_file)
if (ary[slot].articleno == artno) { /* from over.* file */
... found it ...
id = (artno & ~255); /* which data.* file header is in */
access_overview_headers(groupname, id, ary[slot].data_file_offset)
} else {
... non existant ...
}
The algoirthm is emminently cacheable.
-Matt
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Technical Details
Message-ID:
<6d4cnd$3q1$1@flea.best.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-mailReferences:
<6clc7s$b96$1@apollo.backplane.com> <6d2ij4$rh2$1@xs1.xs4all.nl> <6d2n9d$pqh$1@flea.best.net> <6d3q6c$6dm$1@xs1.xs4all.nl>Show Full Headers
Complete Article Headers
Message-ID: <6d4cnd$3q1$1@flea.best.net> Subject: Re: Diablo progress report Date: Thu, 26 Feb 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <6clc7s$b96$1@apollo.backplane.com> <6d2ij4$rh2$1@xs1.xs4all.nl> <6d2n9d$pqh$1@flea.best.net> <6d3q6c$6dm$1@xs1.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: 328912301 X-Trace: 888518191 7036 dillon 206.184.139.132 Organization: Best Internet Communications, Inc. - 650 964 BEST Newsgroups: news.software.nntp