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

Minor optimization: remove conditional#1131

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
timdorr merged 2 commits intoreduxjs:masterfromericanderson:minor-optimization
Dec 14, 2018

Conversation

@ericanderson
Copy link
Contributor

The conditional in selectDerivedProps is unnecessary. The code behaves
identically now but saves about 10% of performance for that portion of
the function.

See:https://jsperf.com/conditional-vs-not

Code left in place but commented in case someone ever wants to add
something like it back for "clarity".

The conditional in selectDerivedProps is unnecessary. The code behavesidentically now but saves about 10% of performance for that portion ofthe function.See:https://jsperf.com/conditional-vs-notCode left in place but commented in case someone ever wants to addsomething like it back for "clarity".
@netlify
Copy link

netlifybot commentedDec 14, 2018
edited
Loading

Deploy preview forreact-redux-docs ready!

Built with commit7da8c0d

https://deploy-preview-1131--react-redux-docs.netlify.com

@timdorr
Copy link
Member

Thanks!

@timdorrtimdorr merged commit849ce41 intoreduxjs:masterDec 14, 2018
albertodev7 pushed a commit to albertodev7/react-redux that referenced this pull requestDec 8, 2022
* Minor optimization: remove conditionalThe conditional in selectDerivedProps is unnecessary. The code behavesidentically now but saves about 10% of performance for that portion ofthe function.See:https://jsperf.com/conditional-vs-notCode left in place but commented in case someone ever wants to addsomething like it back for "clarity".* Just remove the code
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ericanderson@timdorr

[8]ページ先頭

©2009-2025 Movatter.jp