|
Posted by Tony Marston on 07/12/06 14:45
"Marcin Dobrucki" <Marcin.Dobrucki@TAKETHISAWAY.nokia.com> wrote in message
news:z33tg.33862$_k2.597394@news2.nokia.com...
> Tony Marston wrote:
>
>> Since when does reading from memory cause a read from disk?
>
> Well, with virtual memory, that is quite possible. However, seeing as the
> file will probably be in the file cache, and will probably be accessed
> frequently during the page generation, disk access should be very limited.
You are including a lot of "ifs, ands and buts" which do nothing but
introduce unnecessary complications. The point at issue is about disk
accesses that are written into the program, not executed by the file system.
So as far as I am concerned reading in 1000 entries in one go is more
efficient than reading the same 1000 entries one at a time. 1 read or 1000
reads - which is more efficient?
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|