[squeak-dev] Re: Read buffering for FileStream

Andreas Raab andreas.raab at gmx.de
Sun Dec 6 21:10:56 UTC 2009


Andreas Raab wrote:
> Let's benchmark it:
> 
> StandardFileStream allSubInstancesDo:[:sfs| sfs disableReadBuffering].
> t1 := [Object compileAll] timeToRun.
> StandardFileStream allSubInstancesDo:[:sfs| sfs enableReadBuffering].
> t2 := [Object compileAll] timeToRun.
> {t1. t2}
> 
> => #(1004 535)

And for comparison, here's the result when using Cog:

  #(701 253)

So Cog basically speeds up the compilation itself by 2x but can't do 
anything about the speed of file operations; as a consequence the 
speedup w/o read buffering is a mere 20-30%; with read buffering it's 
2x; together it's a 4x improvement. Not too shabby...

Cheers,
   - Andreas



More information about the Squeak-dev mailing list