Closed evilfant closed 2 years ago
Deletes are not tracked by state vectors, hence clients always exchange all deletes with each other. This is encoded very efficiently and it does not make sense to optimize this further. Not tracking this kind of information (we don't have to assign a lamport timestamp to each delete operation) also allows us to do further compressing of the data. The advantage is that we have a much smaller initial load. The disadvantage is that we always have a small load of deletes even when we are fully synced.
Source: https://github.com/yjs/yjs/issues/346#issuecomment-963955415
Thank you @mlajtos!
Closing this issue.
Describe the bug To Reproduce
vector
of the first doc and calc diff between identical docs. Calculated update won't be empty It will have aDeleteItem
codesandbox1 It works fine if remove the line
yText1.delete(0, 1);
It also reproduces with only one doc codesandbox2
Expected behavior Update should contains an empty DeleteSet
Environment Information
Huly®: YJS-275