comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Looking for keyed file package
Date: 1999/09/25
Date: 1999-09-25T00:00:00+00:00	[thread overview]
Message-ID: <1999Sep25.114101.1@eisner> (raw)
In-Reply-To: 7sijv6$tc8$1@nnrp1.deja.com

In article <7sijv6$tc8$1@nnrp1.deja.com>, Robert Dewar <robert_dewar@my-deja.com> writes:

>> but I think that all started back when disk and memory space
>> were much more dear.  I/O bandwidth one area of computer
>> performance that does not seem to be advancing so much as the
>> others, so these days typical advice might be to engage in
>> extensive caching of the index data if performance is
>> important.
> 
> The whole *point* of key compression is to allow this caching
> to be more efficient. You want as much of the key index in main
> memory as possible (and if you are really pushing things, in
> cache as possible). Key compression is vitally important for
> this, and in fact it is MORE important with modern architectures
> than with older ones, precisely because of the increasing gap
> between processor/memory speed and I/O speed.

Since you say "in main memory as possible (and ...in cache",
I gather you are talking about processor memory cache, whereas
what I meant was having the index in the caches created by the
indexed file system in main memory.

Presuming the actual data will likely require a disk read,
I think the difference between index data being in processor
cache and being in the file system cache in main memory is
not of consequence.

The data I have been dealing with this month have a maximum
of 16 bytes of key data for a record length of 600 bytes,
so the standard recommendation to set the cache size large
enough to hold the entire index tree in memory seems reasonable.
Memory is cheap enough, however, that even not having the
keys compressed would be acceptable in this setting. That
would be quite different with 584 bytes of key data for
a record length of 600 bytes.  Of course particular key
data can be more or less susceptible to compression.

Larry Kilgallen




  reply	other threads:[~1999-09-25  0:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <37E817C6.80ED41E0@easystreet.com>
1999-09-22  0:00 ` Looking for keyed file package p.obry
     [not found] ` <7saii8$5bl$1@nnrp1.deja.com>
1999-09-22  0:00   ` Al Christians
1999-09-22  0:00     ` Vladimir Olensky
1999-09-22  0:00       ` Al Christians
1999-09-22  0:00         ` David Botton
1999-09-23  0:00     ` Robert Dewar
1999-09-22  0:00       ` Al Christians
1999-09-22  0:00   ` David Botton
1999-09-23  0:00   ` p.obry
1999-09-24  0:00     ` Robert Dewar
1999-09-24  0:00       ` Robert Dewar
1999-09-24  0:00         ` Larry Kilgallen
1999-09-25  0:00           ` Robert Dewar
1999-09-25  0:00             ` Larry Kilgallen [this message]
1999-09-26  0:00               ` Robert Dewar
1999-09-26  0:00                 ` David Botton
1999-09-28  0:00                   ` Robert Dewar
1999-09-28  0:00                     ` David Botton
1999-09-28  0:00                       ` Ted Dennison
1999-09-28  0:00                         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox