Skip to content

Conversation

chiawendt
Copy link
Contributor

Screenshot from 2022-10-06 17-16-27

Screenshot from 2022-10-06 17-17-33

Profiler shows it's about 2% faster overall.

@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

Merging #3451 (5baa3e0) into master (d0da6bf) will not change coverage.
The diff coverage is 100.00%.

@@ Coverage Diff @@ ## master #3451 +/- ## ======================================= Coverage 97.62% 97.62% ======================================= Files 123 123 Lines 8976 8976 Branches 3279 3279 ======================================= Hits 8763 8763 Misses 213 213 
Impacted Files Coverage Δ
lib/util/Components.js 96.50% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

We can do this in this case since it's inside an abstraction, but this kind of microoptimization is imo crossing the line to where the readability hit isn't worth the performance gain.

@ljharb ljharb added the hacktoberfest-accepted If you're interested in a free shirt, this PR counts towards it. label Oct 6, 2022
@ljharb ljharb merged commit 5baa3e0 into jsx-eslint:master Oct 6, 2022
@chiawendt
Copy link
Contributor Author

Good point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted If you're interested in a free shirt, this PR counts towards it.

2 participants