Core: QUnit.equiv major ES6 refactor & optimizations [Step 2]#1701
Open
izelnakri wants to merge 14 commits intoqunitjs:mainfrom
Open
Core: QUnit.equiv major ES6 refactor & optimizations [Step 2]#1701izelnakri wants to merge 14 commits intoqunitjs:mainfrom
izelnakri wants to merge 14 commits intoqunitjs:mainfrom
Conversation
Small removals/adjustments to make the code more readable.
Makes code more readable and removes variable mutations in compareConstructors().
Krinkle
pushed a commit
to Krinkle/qunit
that referenced
this pull request
Jun 11, 2024
Krinkle
pushed a commit
to Krinkle/qunit
that referenced
this pull request
Jun 11, 2024
Member
|
@izelnakri I believe most of these have landed since in commits at https://github.com/qunitjs/qunit/commits/main/src/equiv.js. Mainly fec7c1a. The one part that I haven't landed yet is the passing down of I did not see a consistent difference in the benchmark, though. Perhaps you'd like to have a look to check that 1) I've applied it correctly, or 2) perhaps benchmark it differently. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces further refactors and optimizations based on #1700
Certain changes probably require QUnit to update its browser policy and deprecate support for certain browsers.
I'm confident that each commit should result in faster deepEqual checks, except the last one. The last commit particularly needs to be benchmarked I think.
I seperated each refactor to its seperate commit. Have a look, I think you'll find it very interesting! :)