@loro-dev/flock 4.4.1 → 4.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -158,8 +158,15 @@ declare class Flock {
158
158
  merge(other: Flock): void;
159
159
  /**
160
160
  * Returns the exclusive version vector, which only includes peers that have
161
- * at least one entry in the current state. This is consistent with the state
162
- * after export and re-import.
161
+ * at least one entry in the current state.
162
+ *
163
+ * Complexity: O(M + V log M + R (log L + log S)).
164
+ * - M = memtablePeerCount
165
+ * - V = vvPeerCount
166
+ * - L = memtableLen
167
+ * - R = scanned candidate rows in KV_BY_PEER_CLOCK
168
+ * - S = storage key count in KV_BY_KEY
169
+ * No full O(memtableSize) pre-scan is performed.
163
170
  *
164
171
  * Use this version when sending to other peers for incremental sync.
165
172
  */
package/dist/index.d.ts CHANGED
@@ -158,8 +158,15 @@ declare class Flock {
158
158
  merge(other: Flock): void;
159
159
  /**
160
160
  * Returns the exclusive version vector, which only includes peers that have
161
- * at least one entry in the current state. This is consistent with the state
162
- * after export and re-import.
161
+ * at least one entry in the current state.
162
+ *
163
+ * Complexity: O(M + V log M + R (log L + log S)).
164
+ * - M = memtablePeerCount
165
+ * - V = vvPeerCount
166
+ * - L = memtableLen
167
+ * - R = scanned candidate rows in KV_BY_PEER_CLOCK
168
+ * - S = storage key count in KV_BY_KEY
169
+ * No full O(memtableSize) pre-scan is performed.
163
170
  *
164
171
  * Use this version when sending to other peers for incremental sync.
165
172
  */