Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: refactor diff to do less slow mutations #1697

Merged
merged 2 commits into from Jul 9, 2022

Conversation

izelnakri
Copy link
Contributor

No description provided.

src/core/utilities.js Outdated Show resolved Hide resolved
@Krinkle
Copy link
Member

Krinkle commented Jul 8, 2022

Nice!

Confirmed results via a quick run at https://www.measurethat.net/Benchmarks/Show/19727/0/filter-vs-reduce-vs-slice-splice. More than an order of magnitude indeed in SpiderMonkey/JSC/V8. I also ran a third variant there with .filter().

I'm ready to land this, and will do so tomorrow either way as it's a clear improvement. I'm curious though if you avoided .filter() intentionally?

@izelnakri
Copy link
Contributor Author

I'm ready to land this, and will do so tomorrow either way as it's a clear improvement. I'm curious though if you avoided .filter() intentionally?

I haven't thought of this, indeed it could be .filter() 馃槄 I created another commit for filter change, feel free to merge/delete them as you see fit!

@Krinkle Krinkle merged commit 9cf3e6c into qunitjs:main Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants