-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Slow perceived performance compared to Classic Editor #6466
Comments
I felt that the editor slowed down when upgrading to 2.5 a while ago. I was unable to identify the true cause but noted a few red herrings.
I don’t know how to count instructions per keystroke but I imagine that’s what’s needed... trace through all the processing performed when a keystroke has been made and look for too much stuff going on. |
@jorgefilipecosta Any ideas for how we might be able to benchmark performance in an automated way? |
A point of clarification: Are perceived performance issues being observed while in development mode (with debugging constants), or in the distributed plugin form? |
Both. |
Sorry @danielbachhuber, I missed your ping. Regarding benchmarking performance in an automated way, maybe we can make use of puppeteer. |
Note that Puppeteer has I think automatically tracking two metrics and monitoring for them for regressions would work quite well for us:
|
Yep. Specific to this issue, it's keystrokes that are slow to me. Typing into Gutenberg feels like typing into Slack when I have a bunch of organizations open. |
What is the threshold by which we can consider this resolved? |
It's still pretty slow, to be honest. I don't know if it's possible to get it to Classic Editor fast, but that's the target I'd shoot for. |
Just adding a "slow for me too" here. It's got really bad with the last release. Holding down a key in a paragraph block can freeze the browser. This gif doesn't show it exactly, but the more I type in a post, the worse it gets, and holding down a key when I recorded this, it took 5 seconds for the screen to update when I took my finger off the key. |
I've noticed that the more paragraph blocks you have in a post, the worse it gets. |
Can you check how many entries do you have created for the editor's internal history (undo/redo feature)? You would have to open Redux devTools and investigate. |
Yes, although I'm not sure the undo/redo is the problem I'm seeing. If I have 1 paragraph block, things seem ok. If I create 30 paragraph blocks, the lag is extreme, freezing the browser if I hold down a key. If I then delete those 30 paragraphs and go back to 1, the lag disappears. |
I've opened an issue with steps to reproduce here: #7680 |
#7699 may have a reasonable impact here, along with a number of other performance-labelled pull requests which have been merged recently. I also observed that |
I feel like I am living in the twilight zone here. This seriously wasn't addressed before full release? Mind = boggled. |
@whywaitwebs There are several performance improvements to be released in 5.0.1, so keep your eye out for those. Achieving the best possible performance is on everyone's mind. |
First, try typing a couple paragraphs in Gutenberg. Then, try typing the same paragraphs in Classic Editor.
When you experience these two experiences side by side, Gutenberg is noticeably slower than the Classic Editor. In fact, for any amount of substantial writing, the Classic Editor is refreshing to use over Gutenberg.
I'd suggest we:
The text was updated successfully, but these errors were encountered: