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

Do not set raw vars on query complexity rule if no validation rules are used #1413

Merged
merged 1 commit into from Jul 24, 2023

Conversation

aboks
Copy link
Contributor

@aboks aboks commented Jul 21, 2023

If an empty array of validation rules is passed, no validations will be performed. It seems unnecessary to set the raw variable values on the query complexity rule in such a case.

In these situations, this change saves the unnecessary overhead from DocumentValidator::getRule(), which internally instantiates all rules through DocumentValidator::allRules().

…re used

If an empty array of validation rules is passed, no validations will be
performed. It seems unnecessary to set the raw variable values on the query
complexity rule in such a case.

In these situations, this change saves the unnecessary overhead from
DocumentValidator::getRule(), which internally instantiates all rules
through DocumentValidator::allRules().
@spawnia spawnia added the bug label Jul 24, 2023
@spawnia spawnia merged commit 79c204d into webonyx:master Jul 24, 2023
13 checks passed
@spawnia
Copy link
Collaborator

spawnia commented Jul 24, 2023

Thanks.

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

Successfully merging this pull request may close these issues.

None yet

2 participants