[squeak-dev] Re: Read buffering for FileStream

David T. Lewis lewis at mail.msen.com
Sun Dec 6 22:40:16 UTC 2009


On Sun, Dec 06, 2009 at 01:10:56PM -0800, Andreas Raab wrote:
> 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...

Wow, there's something you don't see every day. Outstanding!

Dave




More information about the Squeak-dev mailing list