× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: random i/o and relative efficiency
  • From: Joel Fritz <JFritz@xxxxxxxxxxxxxxxx>
  • Date: Fri, 12 Feb 1999 10:04:11 -0800

For what I'm doing at the moment, it's academic, but I'm curious anyway.

I'm working on a program that needs to access most of the records in a file
for a given partial key.  There are about 100 records for each partial key
and of those, about 80 are "interesting."  All of the records that need to
be skipped are in the first quarter of the range for a given partial key;
the remainder are contiguous.  I've noticed that other programs that use
this file will chain to the 5 to 10 "interesting" records in the beginning
of the range and then chain to the first "interesting" record in the
contiguous part of the range, processing the remainder of the records in a
reade loop.  Is this faster than chaining to the first record that matches
the partial key and reading every record (chain--reade loop) processing only
the "interesting" records using simple logic?  The program I'm working on is
interactive and only reads 100 or so records for each screen, so performance
really isn't an issue.

I guess the real question is what is the performance difference, if any,
between a chain and a reade, or how many reades make a chain? 

Joel Fritz x1568

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.