#: 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
|