<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 07.05.2009, at 18:53, Eliot Miranda wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">On Thu, May 7, 2009 at 9:36 AM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br> 2009/5/7 Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>>:<br> <div><div></div><div>>I intend to add immediate characters within the next few months.<br> ><br> </div></div>so, does that means that you will extend the oop tag to 2 bits (or more)?</blockquote><div><br></div><div>Yes. &nbsp;Keep 31-bit SmallIntegers, provide e.g. 24-bit immediate characters. &nbsp;Andreas wrote a <a href="http://lists.squeakfoundation.org/pipermail/vm-dev/2006-January/000429.html">thorough sketch of this scheme</a> in 2006.</div> <div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Or just reserve a non-movable heap space for character objects, like:<br> isCharacterObject: oop<br> &nbsp;^ oop >= charsStart and: [ oop &lt; charsEnd ]</blockquote><div><br></div><div>No. This doesn't scale to unicode. &nbsp;The tagged approach provides much faster string access, and identity comparison for all characters, not just the byte range.</div></div></blockquote><br></div><div>Do we have evidence that Character allocation is an actual performance bottleneck?</div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><br class="Apple-interchange-newline"></div></span> </div><br></body></html>