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 a memoized key lookup for rules #615

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshkel
Copy link

@joshkel joshkel commented May 10, 2024

On my project, this makes ESLint as a whole roughly 8% faster, and it seems to result in consistently faster benchmarks.

Note a behavior change - member expressions used to find the first matching rule, while they now favor the more general rule if relevant. (I believe this change is an improvement: "Promise is not supported in IE 10" is a more helpful message than "Promise.reject() is not supported in IE 10".)

On my project, this makes ESLint as a whole roughly 8% faster, and it
seems to result in consistently faster benchmarks.

Note a behavior change - member expressions used to find the first
matching rule, while they now favor the more general rule if relevant.
(I believe this change is an improvement: "Promise is not supported in
IE 10" is a more helpful message than "Promise.reject() is not supported
in IE 10".)
@joshkel
Copy link
Author

joshkel commented Dec 12, 2024

Sorry to nag, but is there anything I can do to help things progress with this PR? I'd love to benefit from the performance improvements in my projects if it's not too much trouble.

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.

1 participant