DEV Community

Discussion on: The Piece Table - the Unsung Hero of Your Text Editor

Collapse
 
isaacdlyman profile image
Isaac Lyman

This is a great article. It reminds me a little of the "Delta" structure used by QuillJS. The document itself is represented as an array of objects, but updates are represented atomically as new objects of type retain, insert, or delete. I don't think it offers the same performance advantages as a true piece table, but it does provide some flexibility about how you build the document and respond to changes.

Collapse
 
_darrenburns profile image
Darren Burns

Thanks Isaac :)