-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Yaml\Parser isBlockScalarHeader is slow #27960
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
Labels
Comments
Can you show an example YAML file that shows this or a similar profile? |
Can you check if #28106 improves the situation? |
fabpot
added a commit
that referenced
this issue
Aug 2, 2018
This PR was merged into the 4.2-dev branch. Discussion ---------- [Yaml] save preg_match() calls when possible | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | possibly #27960 | License | MIT | Doc PR | Commits ------- e6bea97 save preg_match() calls when possible
I will double check on the weekend. |
It looks like my issue was solved, thx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 3.4.11
Description
when parsing yaml files the method
Yaml\Parser::isBlockScalarHeader
is oftentimes on the hotpath, because doing a lot ofpreg_match
calls.see

would it make sense to do a cheaper fast-fail check before actually invoking the regex-engine?
I do not have yet a proper feeling of what this method is trying to check and why, so my suggestion might be rubbish.
The text was updated successfully, but these errors were encountered: