-
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
gutenberg_parse_blocks( $post->post_content ) takes 135 ms to execute #7337
Comments
I'm using this until some official response arrives:
I found that |
I'm curious what gutenberg_parse_blocks is; I can't find an explanation on the webz. |
@manake Can you share the contents of |
I tested it with several The following gives me roughly 35 ms (PHP 7.0.4, i7, Windows 10):
Out of curiosity I tried it on PHP 7.1.18, Ubuntu 16.04.1, Intel c2750 and the value oscillates around 10.068893432617 ms while 5 copies raise it to 49.859046936035 ms. My issue is already somewhat solved (with a workaround) but since WordPress is already running |
Thanks for the additional detail, @manake. I've filed this as a bug for now, to at least get some visibility on it before too long.
I'm not convinced saving the results to some global is the appropriate technical solution. It seems more valuable and important to solve the performance issue. |
And every time I call this function this time is increased, for example 5 × 135 ms = 675 ms.
Is there some
$wp_query->parsed_blocks
or something available?The text was updated successfully, but these errors were encountered: