mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat(infra): use yjs mergeupdate for performance (#7343)
This commit is contained in:
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user