i wonder if anyone's ever written a text editor that memory-maps the text area
@bjornsdottirs what do you mean by this
@croissant i mean the text editor being a mmap()d file rather than the result of malloc()
@bjornsdottirs @croissant probably not, because afaik text editors use more sophisticated structures than a plain array of characters
otherwise every single insert and delete would involve a massive memcpy() of all the text after the cursor
otherwise every single insert and delete would involve a massive memcpy() of all the text after the cursor
@LunaDragofelis @croissant yeah.