Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Serializer] AbstractObjectNormalizer improve performance#28277

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfrommartiis:object-normalizer-perf-opt
Aug 27, 2018

Conversation

@martiis
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#28276
LicenseMIT

Check ticket for description

}

returnnull;
return$this->typesCache[$key] =null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

isset($this->typesCache[$key]) will befalse anyway if the value isnull.

Copy link
ContributorAuthor

@martiismartiisAug 26, 2018
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You're right. Now marked asfalse and added extra check at the start to avoid usingarray_key_exists()

@martiismartiisforce-pushed theobject-normalizer-perf-opt branch 2 times, most recently fromaca08e4 to626d93dCompareAugust 26, 2018 16:44
@martiismartiisforce-pushed theobject-normalizer-perf-opt branch from626d93d to4224145CompareAugust 26, 2018 16:46
@nicolas-grekasnicolas-grekas added this to thenext milestoneAug 27, 2018
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, thanks!

@fabpot
Copy link
Member

Thank you@martiis.

@fabpotfabpot merged commit4224145 intosymfony:masterAug 27, 2018
fabpot added a commit that referenced this pull requestAug 27, 2018
…nce (martiis)This PR was merged into the 4.2-dev branch.Discussion----------[Serializer] AbstractObjectNormalizer improve performance| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#28276| License       | MITCheck ticket for descriptionCommits-------4224145 [Serializer] AbstractObjectNormalizer improve perf when checking types
@nicolas-grekasnicolas-grekas modified the milestones:next,4.2Nov 1, 2018
This was referencedNov 3, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@srozesrozesroze approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

5 participants

@martiis@fabpot@nicolas-grekas@sroze@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp