-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Performance loss in version 8 #79
Comments
What OS and Node.js version? |
// @mrmlnc |
I added this issue to my ToDo list to this week. At first glance, the problem occurs at the read level of the file system. The values range from 8 to 15 milliseconds. I think we read more than we should. |
Thanks for the fast replies. I use windows 10 pro, but the difference is also noticeable on macOS. some tests on windows 10:
|
We're facing the same issue on Yeoman yeoman/yo#176 (comment) I saved a trace in this gist https://gist.github.com/SBoudrias/3004406099a97f05478305311e5dc3a3 - if it can helps @mrmlnc debug the root cause. |
Specifically the 2 calls we do are: globby.sync(
['generator-*', '@*/generator-*'],
{cwd: root, onlyFiles: false, absolute: true}
) globby.sync('*/index.js', {cwd: pattern, absolute: true}) from https://github.com/yeoman/environment/blob/master/lib/resolver.js |
Any news on this? |
The latest globby v10 is nearing v7 performance. v10 is about 3-4 times faster than v9, and still about twice slower than v7. |
That sounds good. Thank you.
|
This issue will be fixed with the release of the next version of fast-glob. You can track progress in mrmlnc/fast-glob#156 or mrmlnc/fast-glob#249.
|
The If the problem still remains, let me know.
|
I can confirm that. Cool. Thank you very much.
|
I noticed a performance loss when updating to version 8.0.1 in
globby.sync()
.I try to find a file in some defined folders in a tree of 500 documents.
Using the sync method in this example is about 10 times faster with version 7.1.1
Switching to "fast_glob" does not seem to be faster in any case,
or maybe you see potential to optimize the used patterns or options?
The text was updated successfully, but these errors were encountered: