使用 Eg-walker 进行协同文本编辑:更好、更快、更小
Collaborative Text Editing with Eg-walker: Better, Faster, Smaller
AI总结:
针对协同文本编辑中 OT 算法合并慢和 CRDTs 内存消耗大、加载慢的问题,提出 Eg-walker 算法,在内存消耗和加载速度上显著优于现有 CRDTs,合并速度远超 OT,为对等协同软件的普及奠定基础。
摘要:
协同文本编辑算法允许多个用户同时修改文本文件,并自动将并发编辑合并为一致状态。现有算法分为两类:Operational Transformation (OT) 算法在合并因离线编辑而产生显著差异的文件时速度较慢;CRDTs 在加载时速度慢且消耗大量内存。我们提出了 Eg-walker,一种用于文本的协同算法,避免了这些缺陷。与现有 CRDTs 相比,它在稳态下的内存消耗低一个数量级,从磁盘加载文档的速度快几个数量级。与 OT 相比,合并长期运行的分支速度快几个数量级。在最坏情况下,Eg-walker 的合并性能与现有 CRDT 算法相当。Eg-walker 可用于所有使用 CRDTs 的场景,包括没有中央服务器的对等系统。通过提供与中心化算法相媲美的性能,我们的结果为对等协同软件的广泛采用铺平了道路。
英文摘要:
Collaborative text editing algorithms allow several users to concurrently modify a text file, and automatically merge concurrent edits into a consistent state. Existing algorithms fall in two categories: Operational Transformation (OT) algorithms are slow to merge files that have diverged substantially due to offline editing; CRDTs are slow to load and consume a lot of memory. We introduce Eg-walker, a collaboration algorithm for text that avoids these weaknesses. Compared to existing CRDTs, it consumes an order of magnitude less memory in the steady state, and loading a document from disk is orders of magnitude faster. Compared to OT, merging long-running branches is orders of magnitude faster. In the worst case, the merging performance of Eg-walker is comparable with existing CRDT algorithms. Eg-walker can be used everywhere CRDTs are used, including peer-to-peer systems without a central server. By offering performance that is competitive with centralised algorithms, our result paves the way towards the widespread adoption of peer-to-peer collaboration software.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。