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: 72 times faster to check no-unused-selector #285

Merged

Conversation

baseballyama
Copy link
Contributor

@baseballyama baseballyama commented Jul 1, 2023

Thank you for maintaining this ESLint plugin!
This plugin has helped improve the quality of my company's Vue3 code.

Today, I would like to improve one small thing.
Regarding my big Vue component, no-unused-selector takes 479.354 ms.
But after this PR, it will be 6.662 ms.

In this PR, just I applied a cache mechanism to avoid custom traverse execution.
It may have a chance to use old code, but the cache duration is only 1 second.
So, personally, performance improvement has more benefits than this.

@changeset-bot
Copy link

changeset-bot bot commented Jul 1, 2023

🦋 Changeset detected

Latest commit: 52eefcb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-vue-scoped-css Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

Great! Thank you!

@ota-meshi ota-meshi merged commit 0e015a7 into future-architect:master Jul 2, 2023
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.

2 participants