Posted by Tony Marston on 07/12/06 09:04
"Marcin Dobrucki" <Marcin.Dobrucki@TAKETHISAWAY.nokia.com> wrote in message
news:4J2tg.33860$_k2.597094@news2.nokia.com...
> Tony Marston wrote:
>> But which of these is more efficient?:
>> (a) Reading a file of 1000 entries into memory so that each entry can be
>> read from memory.
>> (b) Reading each of the 1000 entries from disk individually.
>
> Seeing as the file will be read into the filesystem cache, its unlikely
> that you will be doing 1000 disk access' to get the data.
Since when does reading from memory cause a read from disk?
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|