2010/1/21 Igor Stasenko <siguctua@gmail.com>:
2010/1/21 Stéphane Ducasse <stephane.ducasse@inria.fr>:
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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project