<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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's called?<div><br><div><div>On Oct 3, 2008, at 3:09 PM, Mariano Abel Coca wrote:</div><br class="Apple-interchange-newline"><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, 'abcdefg' ]].<br>^result<br> <br><br>|writer|<br>100 timesRepeat:<br> [ writer := <span class="nfakPe">WriteStream</span> on: String new.<br>  4000 timesRepeat: [ writer nextPutAll:'abcdefg' ]].<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">herbertkoenig@gmx.net</a>></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> Is there a reason to prefer one of these approaches over the other?<br> MV> Maybe one is more efficient and should be preferred if doing a large<br> MV> 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> Are there other approaches I should consider?<br> <br> Don't know of any but then I'm not an expert.<br> <br> <br> Cheers,<br> <font color="#888888"><br> Herbert<br> </font><div><div></div><div class="Wj3C7c"><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><br clear="all"><br> </div></div></div></div> _______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/mailman/listinfo/beginners<br></blockquote></div><br><div> <span class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-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; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">---</div><div>Mark Volkmann</div><div><br class="webkit-block-placeholder"></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> </div><br></div></body></html>