TIP: Click on subject to list as thread! ANSI
echo: cis.os9.6809.coco
to: George Hendrickson 71071,2003
from: Pete Lyall 76703,4230
date: 1990-11-22 13:11:22
subject: #8374-File Info

#: 8376 S10/OS9/6809 (CoCo)
    22-Nov-90  13:11:22
Sb: #8374-File Info
Fm: Pete Lyall 76703,4230
To: George Hendrickson 71071,2003

One possibility is to read the whole directory into RAM in one shot. You could
use _gs_size to determine how big it is, and you could even dynamically
allocate the storage for it (if using C) using a malloc(). If using B09, you
may need to set aside a certain reasonable maximum sized buffer. Reading in one
fell swoop is much quicker than several 32 byte reads.

Then, you could do the lookup in RAM, which would be much faster. 3 seconds
sounds pretty slow.

Pete

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.