-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Performance boost for Assign utility #1282
Conversation
What do you think about an
|
Well, it'd definitely be a breaking change since it's accessible to the user. I'm working on the code changes to make tests pass -- at this point I think all I need is |
I'm pretty sure |
Ah right -- not breaking but worth mentioning for the few who may be importing from shared. I forgot how thorough the test suite is... goals. 💯👏 |
Codecov Report
@@ Coverage Diff @@
## master #1282 +/- ##
=========================================
- Coverage 91.51% 91.5% -0.01%
=========================================
Files 121 121
Lines 4326 4322 -4
Branches 1361 1361
=========================================
- Hits 3959 3955 -4
Misses 153 153
Partials 214 214
Continue to review full report at Codecov.
|
brent-rambo.gif |
I believe the current
assign
utility was my doing anyway 😆This new one is borrowed from Preact. While its usage for multiple assignments feels a bit clunky, its perf boost is still significant, and minifies to a smaller footprint overall.