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

Micromatch performance #34

Closed
mrmlnc opened this issue Jan 16, 2018 · 0 comments
Closed

Micromatch performance #34

mrmlnc opened this issue Jan 16, 2018 · 0 comments
Assignees

Comments

@mrmlnc
Copy link
Owner

mrmlnc commented Jan 16, 2018

We need fix performance for the micromatch package.

So, we spend about 30ms (for 400 entries with 50 depth) to find the regular expression for the pattern in the cache when we pass options. Proof:

Before:

fast-glob-current.js
(TIME) 81.862ms ±2.573% | (MEMORY) 8.357MB ±0.081% | Entries: 200 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 60.310ms ±1.405% | (MEMORY) 10.533MB ±0.073% | Entries: 200 | Errors: 0 | Retries: 1

After (Transform patterns to RegExps once in Reader class):
1 bash 2018-01-15 21-58-32

P.S: You need to look at the diff between numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant