On Saturday, 23 May 2026 at 18:29:20 UTC, c-smile wrote:
On Saturday, 23 May 2026 at 17:04:16 UTC, Anton Pastukhov wrote:
On Saturday, 23 May 2026 at 16:35:28 UTC, c-smile wrote:

have to do some basic performance optimizations, becuase the current implementation is _terribly_ ineffective (EditBox widget chokes on less-than-medium-sized texts).

Naïve EditBox implementations have `O(N)` complexity on single character handling so no matter what you do it will be ineffective. On each character pressed it rescans (word/line breaking, etc.) of whole text.

That's precisely what we have now, unfortuantely. I already realized that we'll need more edit widget sorts. The current EditBox is a bit of a god object and tries to bee everything at once (as many other things in the codebase).


I would rather go with Skia from ground up.

Never heard of it, will take a look. SDL has an advantage of being C lib, and D's story of C interop is pretty strong. Not sure about C++.

  • Dcanvas, a fork ... Anton Pastukhov via Digitalmars-d-announce
    • Re: Dcanvas... Sergey via Digitalmars-d-announce
      • Re: Dca... Anton Pastukhov via Digitalmars-d-announce
    • Re: Dcanvas... c-smile via Digitalmars-d-announce
      • Re: Dca... Anton Pastukhov via Digitalmars-d-announce
        • Re:... c-smile via Digitalmars-d-announce
          • ... Anton Pastukhov via Digitalmars-d-announce
            • ... just say no to phobos brainrot via Digitalmars-d-announce
              • ... Anton Pastukhov via Digitalmars-d-announce
            • ... c-smile via Digitalmars-d-announce
              • ... Dejan Lekic via Digitalmars-d-announce
                • ... c-smile via Digitalmars-d-announce
                • ... Adam D. Ruppe via Digitalmars-d-announce
                • ... c-smile via Digitalmars-d-announce
                • ... H. S. Teoh via Digitalmars-d-announce
                • ... matheus via Digitalmars-d-announce
                • ... H. S. Teoh via Digitalmars-d-announce

Reply via email to