Skip to content

败犬日报 2025-04-12

1. zed 编辑器的 text buffer 使用了 sumtree

一种 B 树。

Zed: 文本编辑中的 Rope 与 SumTree - 柳下川的文章 - 知乎 https://zhuanlan.zhihu.com/p/780572678

vscode 使用了 piece table。https://code.visualstudio.com/blogs/2018/03/23/text-buffer-reimplementation