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

Cssmin mucher slower on PHP with PCRE2 10.35 or + #63

Open
obriat opened this issue Sep 8, 2021 · 0 comments
Open

Cssmin mucher slower on PHP with PCRE2 10.35 or + #63

obriat opened this issue Sep 8, 2021 · 0 comments

Comments

@obriat
Copy link

obriat commented Sep 8, 2021

Has seen on https://bugs.php.net/bug.php?id=81424

On line:

$css = preg_replace('/[^{};\/\n]+\{\}/S', '', $css);

The following regex /[^{};\/\n]+\{\}/S is not optimal with PCRE2 10.35+ (100 times slower) it should be rewrite.
The solution proposed on the PHP issue is not suitable here, a regexp expert should have a look at it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant