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

Slow call to Imagick::queryFormats #647

Open
johnbillion opened this issue Jul 18, 2022 · 0 comments
Open

Slow call to Imagick::queryFormats #647

johnbillion opened this issue Jul 18, 2022 · 0 comments
Labels
bug Existing functionality isn't behaving as expected

Comments

@johnbillion
Copy link
Member

Moving this into a public ticket from this support request: https://dashboard.altis-dxp.com/#/support/ticket/6864/.

There appears to be an intermittent issue where a call to Imagick::queryFormats() is slow (~500ms). It's unclear how often this happens but there are two links to affected XRay traces in the support ticket above.

I did wonder if this call could be skipped entirely but unfortunately there doesn't appear to be any filters in WordPress core to prevent this call from occurring unless the WP_Image_Editor_Imagick class is replaced (using the wp_image_editors filter) by a custom one which doesn't perform this call.

Regardless, it might be worth investigating why this call is sometimes so slow.

@johnbillion johnbillion added the bug Existing functionality isn't behaving as expected label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing functionality isn't behaving as expected
Projects
None yet
Development

No branches or pull requests

1 participant