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

perf: use Glob.list to more efficiently find packages #426

Merged
merged 5 commits into from
Dec 7, 2022

Conversation

blaugold
Copy link
Collaborator

@blaugold blaugold commented Dec 2, 2022

Description

Before this change all files in a workspace were iterated over to find packages.

Glob.list can potentially skip searching through many directories based on the pattern. In larger workspaces this can save upwards of 300ms during each invocation.

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)
  • 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
  • ! -- Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 refactor -- Code refactor
  • ci -- Build configuration change
  • 📝 docs -- Documentation
  • 🗑️ chore -- Chore

@blaugold blaugold force-pushed the perf/locate-packages branch from 1d4da6d to 4fd8b6d Compare December 7, 2022 13:53
@blaugold blaugold merged commit d7a8541 into main Dec 7, 2022
@blaugold blaugold deleted the perf/locate-packages branch December 7, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant