-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Performance: save components are called for *every* block on *every* keystroke #10427
Comments
Seems to be introduced in #6257 with changes to AutosaveMonitor. Cc @adamsilverstein @danielbachhuber @aduth. |
Issue seems to be generally with the check for saveable post content, which causes serialisation on every change. This check should be made more performant somehow, maybe shallowly comparing the raw state vs comparing the the serialised content. |
Relevant #9624 |
This could be potentially resolved in parallel with #7409, in splitting a simple |
Nice work debugging and addressing this issue. |
Describe the bug
This happens after the initial autosave, from then on every keystroke (or any attribute change) will trigger serialisation of the whole post content. I would expect (partial) serialisation of the content to only happen once the post has to be saved, ideally only for the parts that have changed.
The issue seems to happen where we try to determine whether the post is auto saveable?
gutenberg/packages/editor/src/store/selectors.js
Lines 390 to 406 in cc5bf5c
Looking further into this, but reporting now because it seems high priority.
The text was updated successfully, but these errors were encountered: