Re: Digest for EUforum at topica.com, issue 3230
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 17, 2003
- 450 views
Kat wrote: > Afaik, Eu relies on the OS to cache the blocks read from the disk, meaning > getc must make an OS call for each getc. The first getc reads a large block (8K bytes typically) from disk into RAM. Subsequent getc's just increment a pointer, check for the end of the block, and fetch the next byte from RAM. When the block is used up, the O/S is called and the next 8K block is read in. getc does not call the O/S for each byte, just every 8192 bytes (more or less, depending on the particular O/S). Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com