Skip to content

[Validator] prevent unnecessary calls inside ExecutionContext #11463

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

Merged
merged 1 commit into from
Jul 28, 2014

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Jul 24, 2014

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT

Small performance improvement by preventing calls to PropertyPath::append($this->propertyPath, $subPath) when not needed.

@jderusse
Copy link
Member

May this PR introduce a BC if someone had overrided getValue or getPropertyPath ?

@Tobion
Copy link
Contributor Author

Tobion commented Jul 24, 2014

IMO such thing is not convered by our BC promise when not extra designed to be extended. Otherwise we would need to always use the public getter within each class, which we almost never do. Even here in this case, there is also a getRoot method that is not used.

@webmozart
Copy link
Contributor

👍

@webmozart
Copy link
Contributor

Thank you Tobias.

@webmozart webmozart merged commit d6d462a into symfony:2.5 Jul 28, 2014
webmozart added a commit that referenced this pull request Jul 28, 2014
…ntext (Tobion)

This PR was merged into the 2.5 branch.

Discussion
----------

[Validator] prevent unnecessary calls inside ExecutionContext

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT

Small performance improvement by preventing calls to `PropertyPath::append($this->propertyPath, $subPath)` when not needed.

Commits
-------

d6d462a [Validator] do not call getter inside ExecutionContext to prevent unnecessary calls
@Tobion Tobion deleted the validator-path branch July 29, 2014 11:31
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

Successfully merging this pull request may close these issues.

3 participants