Skip to content

Use V2 Yjs methods for HTTP Polling#76304

Merged
ingeniumed merged 4 commits intotrunkfrom
attempt/to-fix-perf-issues
Mar 10, 2026
Merged

Use V2 Yjs methods for HTTP Polling#76304
ingeniumed merged 4 commits intotrunkfrom
attempt/to-fix-perf-issues

Conversation

@ingeniumed
Copy link
Copy Markdown
Contributor

@ingeniumed ingeniumed commented Mar 9, 2026

What?

Use the V2 methods from Yjs everywhere.

Why?

We use the V2 methods in the Sync manger, so it's good that we are consistent about this. In addition, the V2 methods are a lot more efficient than the V1 methods so this will speed things up.

How?

Use the V2 methods in the following methods:

  • mergeUpdatesV2
  • applyUpdateV2
  • encodeStateAsUpdateV2

Testing Instructions

  • Test editing a post with 2 collaborators
  • Also run the collaborator tests
npm run wp-env-test start
npm run test:e2e

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backported to WP Core Pull request that has been successfully merged into WP Core [Feature] Real-time Collaboration Phase 3 of the Gutenberg roadmap around real-time collaboration [Package] Sync [Type] Experimental Experimental feature or API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants