<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 9/17/2023 11:06 AM, Bernhard Pieber via Cuis-dev wrote:
    <blockquote
cite="mid:i8FZJkxR9oMLdAJIVACH1IVKQ87XZd_el0I40DWuTWEBOxZcl9ZEXn8Q1W9xMtft0zuX_BKX8LpODLv_PNMVZQRVk6qOI_XWKHyWFI1fhtQ=@pieber.com"
      type="cite">
      <div style="font-family: Arial,sans-serif; font-size: 14px;">Hi
        Juan,</div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;">If I
        open a StyledTextEditor using StyledTextEditor open it uses a
        RunNotArray instead of a RunArray for its text like the
        SmalltalkEditor but unlike the TextEditor.</div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;">The
        way SUnit test setup works it mostly uses a RunArray.</div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;">Is
        this intentional, or would it better to use a RunArray?</div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;">Cheers,</div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;">Bernhard</div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial,sans-serif; font-size: 14px;"><br>
      </div>
      <div class="protonmail_signature_block
        protonmail_signature_block-empty" style="font-family:
        Arial,sans-serif; font-size: 14px;">
        <div class="protonmail_signature_block-user
          protonmail_signature_block-empty"> </div>
        <div class="protonmail_signature_block-proton
          protonmail_signature_block-empty"> </div>
      </div>
    </blockquote>
    <br>
    Hi Bernhard,<br>
    <br>
    The original implementation of Text from Smalltalk-80 uses RunArray
    only. RunArray is a space optimization, as usually the same text
    attributes are used by many consecutive characters. But it is
    expensive in time, and I found it to slow down significantly the
    styling of long Smalltalk methods. Hence, #optimizedForMutationSpeed
    and RunNotArray.<br>
    <br>
    Any code using Text should work the same using any of them (except
    for the speed / space tradeoff).<br>
    <br>
    What problem are you seeing with RunNotArray? How can I reproduce
    it?<br>
    <br>
    Thanks,<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
  </body>
</html>