feat(infra): use yjs mergeupdate for performance (#7343)

This commit is contained in:
EYHN
2024-06-27 08:14:17 +00:00
parent 742c10ac94
commit 33bb2b5fcd

View File

@@ -1,6 +1,8 @@
import { mergeUpdates } from 'yjs';
import type { ByteKV, Memento } from '../../storage'; import type { ByteKV, Memento } from '../../storage';
import { MemoryMemento, ReadonlyByteKV, wrapMemento } from '../../storage'; import { MemoryMemento, ReadonlyByteKV, wrapMemento } from '../../storage';
import { AsyncLock, mergeUpdates, throwIfAborted } from '../../utils'; import { AsyncLock, throwIfAborted } from '../../utils';
import type { DocEventBus } from '.'; import type { DocEventBus } from '.';
import { DocEventBusInner, MemoryDocEventBus } from './event'; import { DocEventBusInner, MemoryDocEventBus } from './event';
import { isEmptyUpdate } from './utils'; import { isEmptyUpdate } from './utils';