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)<div><br></div><div>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?</div>
<div><br></div><div>John</div><div><br><br><div class="gmail_quote">2009/11/15 Herbert König <span dir="ltr">&lt;<a href="mailto:herbertkoenig@gmx.net">herbertkoenig@gmx.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
John,<br>
<br>
JW&gt; I will email you the file and the data files its reading. If<br>
<br>
thanks.<br>
<br>
JW&gt; there is something of interest to others you can then post up the<br>
JW&gt; part matters.<br>
<br>
I used TimeProfileBrowser (as Subbu suggested) and Squeak 3.8.2<br>
(supporting UTF8) in comparison to Squeak 3.6 (which is pre Cuis).<br>
<br>
As Bert suggested, in more recent Squeaks a lot of time is spent in<br>
UTF8 decoding. My figures are 9300ms (3.8) vs. 480ms (3.6).<br>
<br>
In 3.6 significant time is spent in displaying the results on the<br>
Transcript. If I comment out that line in getLogFiles I&#39;m down to<br>
312ms.<br>
<br>
Which again shows the value of profiling before optimizing :-))<br>
<br>
For unknown reasons in Cuis FileDirectory&gt;&gt;fileNames returns an empty<br>
Array so I can&#39;t try there.<br>
<div><div></div><div class="h5"><br>
<br>
Cheers,<br>
<br>
Herbert<br>
<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></div>