<div dir="ltr">I think you must be thinking in #timeToRun.<br><br>About that... In VisualAge there are the EsbTracer and EsbSampler, which allows you to meassure the time that involves every message sent. It&#39;s useful to tune some code... But don&#39;t know in Squeak. Any ideas?<br>
<br>Cheers,<br><br>-- <br>Mariano.<br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 5:44 PM, Mark Volkmann <span dir="ltr">&lt;<a href="mailto:mark@ociweb.com">mark@ociweb.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">That reminds me. I know I ran across a method that runs a block and then tells you how long it took. Anyone remember what that&#39;s called?<div><div><div></div><div class="Wj3C7c"><br><div><div>On Oct 3, 2008, at 3:09 PM, Mariano Abel Coca wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><span style="display: block; padding-left: 6em;"><span></span></span>Just check it by yourself. ;)<br><div><div><div><span style="display: block; padding-left: 6em;"><span></span></span><span style="display: block; padding-left: 6em;"><span><br>
 |result|<br>100 timesRepeat:<br> [ result := String new.<br>  4000 timesRepeat: [ result := result, &#39;abcdefg&#39; ]].<br>^result<br> <br><br>|writer|<br>100 timesRepeat:<br> [ writer := <span>WriteStream</span> on: String new.<br>
  4000 timesRepeat: [ writer nextPutAll:&#39;abcdefg&#39; ]].<br>^writer contents </span></span><br>Cheers,<br><br>-- <br>Mariano.<br><br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 2:02 PM, Herbert König <span dir="ltr">&lt;<a href="mailto:herbertkoenig@gmx.net" target="_blank">herbertkoenig@gmx.net</a>&gt;</span> wrote:<br>
 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello Mark,<br> <br> Friday, October 3, 2008, 4:52:39 PM, you wrote:<br> <br> MV&gt; Is there a reason to prefer one of these approaches over the other?<br>
 MV&gt; Maybe one is more efficient and should be preferred if doing a large<br> MV&gt; number of appends.<br> <br> speed is the reason for the stream approach. The #, approach copies<br> the first string once for each #, send.<br>
 <br> <br> MV&gt; Are there other approaches I should consider?<br> <br> Don&#39;t know of any but then I&#39;m not an expert.<br> <br> <br> Cheers,<br> <font color="#888888"><br> Herbert<br> </font><div><div></div><div><br>
 _______________________________________________<br> Beginners mailing list<br> <a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">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><br clear="all"><br> </div></div></div></div> _______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">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></blockquote></div><br></div></div><div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<div><br>---</div><div>Mark Volkmann</div><div><br></div></div></span><br></span><br> </div><br></div></div><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>
<br></blockquote></div><br><br clear="all"><br><br><br>
</div>