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

Update: Improve perf not traversing default ignored dirs (fixes #5679) #6276

Merged
merged 1 commit into from May 31, 2016

Conversation

alberto
Copy link
Member

@alberto alberto commented May 29, 2016

Replaces #6215

@eslintbot
Copy link

LGTM

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @IanVS, @gronke and @jrajav to be potential reviewers

@alberto
Copy link
Member Author

alberto commented May 29, 2016

Testing with PR on this repo:

$ time ./bin/eslint.js node_modules/

real    0m0.366s
user    0m0.329s
sys 0m0.050s

vs. master

$ time ./bin/eslint.js node_modules/

real    0m2.447s
user    0m2.199s
sys 0m0.276s

@gronke
Copy link
Contributor

gronke commented May 29, 2016

To entirely skip ignoring bower_components or node_modules when at least one pattern negates a path within them is a good compromise that will be an improvement for probably most of the use cases.

👍

@eslintbot
Copy link

LGTM

1 similar comment
@ilyavolodin
Copy link
Member

LGTM

@samccone
Copy link

This is good, and is a good first pass improvement :) 👍

* Returns a list of dir patterns for glob to ignore
* @returns {Array} list of glob ignore patterns
*/
IgnoredPaths.prototype.ignoredFoldersGlobPatterns = function() {
Copy link
Member

Choose a reason for hiding this comment

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

I'd call this getIgnoredFoldersGlobPatterns (our conventions have methods beginning with verbs)

@nzakas
Copy link
Member

nzakas commented May 30, 2016

Looks great, just a couple of very small stylistic things.

@eslintbot
Copy link

LGTM

@alberto
Copy link
Member Author

alberto commented May 30, 2016

@nzakas PR updated

@nzakas
Copy link
Member

nzakas commented May 31, 2016

LGTM. Awesome stuff!

@SimenB
Copy link
Contributor

SimenB commented Jun 5, 2016

Any chance of doing a quick patch release of this?

Before: node_modules/.bin/eslint . 10.76s user 2.53s system 76% cpu 17.312 total
After: node_modules/.bin/eslint . 0.91s user 0.11s system 81% cpu 1.250 total

@ilyavolodin
Copy link
Member

@SimenB We try to do releases every other Friday. So next release should be towards the end of this week.

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants