Skip to content
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

High CPU usage when simply typing in paragraph block #7498

Closed
emrikol opened this issue Jun 22, 2018 · 5 comments
Closed

High CPU usage when simply typing in paragraph block #7498

emrikol opened this issue Jun 22, 2018 · 5 comments
Labels
[Type] Performance Related to performance efforts

Comments

@emrikol
Copy link

emrikol commented Jun 22, 2018

Describe the bug
Ever since the latest update to 3.1.0, typing in the Gutenberg editor thrashes my CPU. I've tested this on my local site and also using Frontenberg (just to see if it was my setup). Whenever I stop typing, CPU usage drops dramatically. I don't remember this being an issue with the previous version, but it at least wasn't as bad because I didn't notice. Right now I can't even type without serious lag.

To Reproduce
Steps to reproduce the behavior:

  1. Open a new post or edit an old post
  2. Type in a Gutenberg text box
  3. Watch CPU usage

Expected behavior
I would expect just typing to not use 100% of my CPU and lag so much that I can't see what I'm typing without buffering.

Screenshots
gutenburnthecpu

Desktop (please complete the following information):

  • OS: Microsoft Windows [Version 10.0.16299.492]
  • Browser: Google Chrome
  • Version: 67.0.3396.87 (Official Build) (64-bit)
@danielbachhuber danielbachhuber added the [Type] Performance Related to performance efforts label Jun 22, 2018
@emrikol
Copy link
Author

emrikol commented Jun 22, 2018

I just downgraded to 3.0.1 and no longer have this problem, so it definitely was the 3.1.0 version.

With 3.0.1 the highest CPU usage a Gutenberg page uses while typing is ~50% typing as fast as I can.

@danielbachhuber
Copy link
Member

Yeah, I notice this too right now.

Related #6466

@notnownikki
Copy link
Member

Investigated the issue and found the change here: #7680 (comment)

@brunoc
Copy link

brunoc commented Nov 15, 2019

This is still a big issue in WP 5.3 making Gutenberg unusable (I have to use the "Disable Gutenberg" plugin in prod). I get the same result as below in https://frontenberg.tomjn.com/

gutenberg wp5 3 sluggish frontend

FYI in the example post above, I have about 70-80 blocks (hidden above) with 90% text and titles 10% custom HTML blocks. NO Active Plugins. Using Chrome 78.0.3904.87 (Official Build) (64-bit) MacOS 10.13.6

Let me know if you need more diagnostics.

@tlcd96
Copy link

tlcd96 commented Jan 12, 2024

There's a need for this to be viewed again. High CPU usage on a span of 6 processes created by Gutenberg.
Please reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Performance Related to performance efforts
Projects
None yet
Development

No branches or pull requests

5 participants