Skip to content

Conversation

WooWan
Copy link

@WooWan WooWan commented Mar 10, 2024

Why

This PR implements anyMatchAsync with fast-glob to leverage its lighter, faster capabilities as a replacement for glob. The expected outcome is improved time efficiency in file searching.

Previously, the reliance on everyMatchAsync was due to glob's lack of support for an abort controller, resulting in prolonged search times for files matching a pattern. fast-glob introduces a stream() method enabling early return upon finding the first matched file, thereby optimizing the search process.

How

The transition to fast-glob was motivated by the need for a more efficient file search mechanism. By replacing glob with fast-glob, we utilize its streamlined file pattern matching and early return capabilities, significantly improving search performance and code maintainability.

This is my first pull request 🙇🏻‍♂️. I intend to add a performance comparison between the before and after states. Could you offer some guidance on how to proceed?

Test Plan

There is a test, and manual test

Checklist

@expo-bot
Copy link
Collaborator

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

I've found some issues in your pull request that should be addressed (click on them for more details) 👇

⚠️ Suggestion: Missing changelog entries


Your changes should be noted in the changelog. Read Updating Changelogs guide and consider adding an appropriate entry to the following changelogs:


Generated by ExpoBot 🤖 against d7ce2c6

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Mar 10, 2024
@WooWan
Copy link
Author

WooWan commented Mar 23, 2024

It's ready to review, anything I can improve more? @EvanBacon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: suggestions ExpoBot has some suggestions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants