2010/1/21 Igor Stasenko <[email protected]>:
> 2010/1/21 Stéphane Ducasse <[email protected]>:
>> Hi levente
>>
>> I was wondering why the bufferedFileStream made the system faster.
>> I mean are querying the same contents on several occasion?
>>
> Because disk access is times slower than any "intense" memory access.
>

Depends how the file access is parameterized... Maybe the OS is
buffering behind our back anyway.
There is also a cost associated to the primitive (converting file ID
into a C FILE*, consistency checks, etc...), and maybe one associated
to fread() itself (would be worth testing that with a simple C
program).

Nicolas

>> Stef
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to