EndOfStream unused

Paolo Bonzini bonzini at gnu.org
Wed Nov 7 07:55:10 UTC 2007


> I don't think so. In my experience most streams operate on collections 
> of a few dozen elements so testing data sizes between 5-100 seems 
> totally realistic to me (again, if you have evidence to the contrary I'd 
> like to see it). For example, if I just run a quick:
> 
> (SequenceableCollection allSubInstances collect:[:c| c size]) average
> 
> I end up with 45 elements. Now, granted this may not be the average size 
> of internal collections used for streams but since most streams are 
> transient it's hard to get an actual number for it.

In my experience (it might be a little different in Squeak) most 
collection streams are WriteStreams.  Most ReadStreams are file-based, 
and those are longer than 100 bytes.

Paolo



More information about the Squeak-dev mailing list