sindresorhus / globby

User-friendly glob matching
MIT License
2.53k stars 129 forks source link

Improve performance with mutiple patterns #222

Closed fisker closed 2 years ago

fisker commented 2 years ago

Combine tasks with same options.

Test with this pattern ['**/eslint-plugin-*/package.json', '**/@*/eslint-plugin/package.json'], Prettier use a similar pattern to search plugins.

main - sync: 1.992s
working - sync: 990.913ms
main - async: 1.059s
working - async: 490.155ms
main - stream: 973.486ms
working - stream: 595.946ms