Re: Digest for EUforum at topica.com, issue 3230

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu