<div>Thanks to all.</div>
<div> </div>
<div>Interesting and educational.</div>
<div> </div>
<div>John</div>
<div><br><br> </div>
<div class="gmail_quote">On Mon, Nov 16, 2009 at 12:17 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im"><br>On 14.11.2009, at 23:07, John Worden wrote:<br><br>&gt; So are you saying that my example is slow because of the time taken to process the text data files in Squeak? (I was using 3.10)<br>&gt;<br>&gt; Not that it matters in this case but how would I work around this if it were a real application that needed to handle data in this way?<br>
&gt;<br>&gt; John<br><br></div>If you do, e.g.,<br><br>       FileStream readOnlyFileNamed: myFileName<br><br>it creates a MultiByteFileStream nowadays (see #concreteStream). It would be nice if we could just set a no-op converter in a MultiByteFileStream. However, that class has not been optimized for speed yet, even without an expensive converter it is much slower. It reads characters one-by-one instead of block-wise, which obviously isn&#39;t speedy exactly, as you noticed.<br>
<br>Instead of the abstract FileStream use the stream class you want explicitly. StandardFileStream is the old class that does no conversion. So you would open your file like this instead:<br><br>       StandardFileStream readOnlyFileNamed: myFileName<br>
<font color="#888888"><br>- Bert -<br></font>
<div>
<div></div>
<div class="h5"><br>_______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br>