-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Improve sync performance metrics #75029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Size Change: +238 B (+0.01%) Total Size: 3 MB
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
alecgeatches
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor comments above, plus some failing e2e tests related to post dirty state. Looks good to me otherwise.
In my testing I didn't notice any issues due to the timing change, but we should keep an eye out for those. There's a lot of tricky timings related to undo and selection updates that depend on firing before or after CRDT changes, but I didn't see any in testing.
db4eece to
e6e3665
Compare
|
Performance tests are here and are consistent with https://github.com/WordPress/gutenberg/actions/runs/21876243921/job/63145814804 Merging and will separately evaluate the impact of removing |
What?
Improve the performance of syncing for the all sync providers (not just the default provider).
Why?
Performance metrics are negatively impacted if sync is enabled—even if there is only a single editor / collaborator.
It's critical to ensure that this feature does not degrade the performance of Gutenberg.
How?
SyncManagerare wrapped to log performance timing when a debug flag is passed. 734045eawaitthe promise when loading an entity for syncing. Testing has shown this has no impact. 953b8eatypeoption for the sync REST API endpoint. This was probably not a measurable performance drag, but was generating a warning that makes testing noisy. 3641ab6Testing Instructions
Sync is already enabled via 48e7ce9 so that this PR can demonstrate progress on performance metrics. It can be reverted before merge.
falsetotruehere.Testing Instructions for Keyboard
n/a