Dcanvas, a fork of DlangUI

Anton Pastukhov mail at anton9.com
Sat May 23 19:51:04 UTC 2026


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++.



More information about the Digitalmars-d-announce mailing list