[squeak-dev] Re: Read buffering for FileStream

Andreas Raab andreas.raab at gmx.de
Sun Dec 6 21:00:15 UTC 2009


Levente Uzonyi wrote:
> Should we add this to the trunk until something better (than FileStream) 
> is available?

Yeehaa! :-) Love it. (and sorry for the belated response; yesterday was 
spent in a world-wide rolling server upgrade that kept me busy for most 
of the day)

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)

In other words we just sped up recompilation by oh, a mere factor of two 
(YMMV, due to OS differences, caching behavior etc). This should be 
noticable in a variety of conditions including reshaping classes, change 
list operations etc.

Great job!

Cheers,
   - Andreas



More information about the Squeak-dev mailing list