emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gap buffer problem?


From: Dmitry Gutov
Subject: Re: Gap buffer problem?
Date: Thu, 12 Dec 2024 21:07:25 +0200
User-agent: Mozilla Thunderbird

On 12/12/2024 05:49, Gerd Möllmann wrote:

The Zed editor, which is heavily performance-oriented, decided to use
ropes. They have are a number of blog entries that I find interesting,
for example

   https://zed.dev/blog/zed-decoded-rope-sumtree

IIUC their goal there was a use a data structure that can do everything.

They also have an ambition to support live collaboration, which we don't have anything for, and not for the reasons of performance.

VSCode uses persistent piece tables

   https://code.visualstudio.com/blogs/2018/03/23/text-buffer-reimplementation

And this article compared to the previous "array of strings" implementation.

Both editors' data structures (not ropes) seem to have something that can be used like our "newline cache", so if anything I would try to understand whether either has an advantage in that area.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]