On Apr 10, 2007, at 23:22 , Ian Oversby wrote:
Okay, I tried this and it still seems a bit slow:
| myFile ios |
ios := ReadWriteStream on: ''.
Transcript show: 'Populate Buffer: ', (Time millisecondsToRun: [ 1 to: 10000 do: [ :x | ios nextPutAll: ((x asString) , String crlf) ]]) asString , ' millseconds' ; cr.
Is this the correct way to use the stream?
Why not write
1 to: 10000 do: [:x | ios print: x; cr]
- Bert -