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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: use Set.has instead of Array.includes #140

Merged

Conversation

Azurewarth0920
Copy link
Collaborator

@Azurewarth0920 Azurewarth0920 commented Jan 3, 2024

Set.has has O(1) performance, which is faster than Array.includes's O(n).

Copy link

netlify bot commented Jan 3, 2024

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 4061396
🔍 Latest deploy log https://app.netlify.com/sites/vue-devtools-docs/deploys/65956f5ec4295c00084adebc

@webfansplz webfansplz changed the title feat(pref): Use faster Set.has instead of Array.includes in searching VueBuiltins perf: use Set.has instead of Array.includes Jan 4, 2024
@webfansplz webfansplz merged commit c8eba5a into vuejs:main Jan 4, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants