Gc、snapshot and doc diff

Hello, do I need to turn off GC when using snapshots? I’m trying to figure out how to complete document diffs based on Tiptap. In the example at yjs-demos/prosemirror-versions at d8e33e619d6f2da0fae0c6a361286e6901635a9b · yjs/yjs-demos · GitHub, GC is turned off, but I don’t want to do that as it decreases performance. Do you have any good solutions? I’m not sure if the example on https://yjs.dev/ also has GC turned off. If this case does not turn off GC, where can I find the code for this example? I can’t seem to find it anywhere.

GC has to be turned off, otherwise delete item will be deleted. Turning off GC doesn’t reduce performance too much, it mainly affects the size of the storage.

1 Like

Have you actually conducted the test? I saw someone mention in this issue it would reduce performance.