Building a tiny text editor in Go, part 3: choosing a text buffer28 November 2026·2018 words·10 minsEngineering Go Text Editor Terminal Ted BufferCopying every line for undo does not scale. We compare gap buffers, ropes, and piece tables, look at what real editors use, and then give ted a piece table.