Reproduce “Collaborative Text Editing with Eg-walker: Better, Faster, Smaller” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Joseph Gentle, Martin Kleppmann
Eg-walker introduces a hybrid algorithm for collaborative text editing that efficiently merges the benefits of Operational Transformation and Conflict-free Replicated Data Types. The method achieves up to 160,000 times faster merging for divergent histories compared to OT and reduces steady-state memory by 1-2 orders of magnitude while providing orders of magnitude faster document loading than existing CRDTs.
Key insights
- A hybrid algorithmic design can overcome the limitations of both Operational Transformation and Conflict-free Replicated Data Types by selectively employing CRDT-like mechanisms only when necessary for complex merges.
- Maintaining a temporary, dual internal state (prepare and effect versions) during event graph traversal allows for accurate transformation of index-based operations across divergent histories without permanent metadata overhead.
- The ability to discard or "clear" the internal CRDT state at "critical versions" significantly reduces steady-state memory consumption and speeds up processing for long, mostly sequential editing histories.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.