We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b09fc48 commit fa1286aCopy full SHA for fa1286a
.gitignore
@@ -6,3 +6,4 @@ target
6
dhat-heap.json
7
.DS_Store
8
node_modules/
9
+.idea
crates/loro-internal/src/diff_calc.rs
@@ -75,7 +75,10 @@ impl DiffCalculator {
75
merged.merge(after);
76
let empty_vv: VersionVector = Default::default();
77
if !after.includes_vv(before) {
78
- // if after is not after before, we need to calculate the diff from the beginning
+ // If after is not after before, we need to calculate the diff from the beginning
79
+ //
80
+ // This is required because of [MapDiffCalculator]. It can be removed with
81
+ // a better data structure. See #114.
82
before = &empty_vv;
83
after = &merged;
84
before_frontiers = None;
0 commit comments