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: early exit for pathIsInfolder (19% faster) #732

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

lukecotter
Copy link

@lukecotter lukecotter commented Jan 17, 2025

What does this PR do?

pathIsInfolder will exit as early as possible,.
This improved overall sf project deploy start times in my project by ~19%

What issues does this PR fix or reference?

Combined with this pull request in isomorphic git I was seeing roughly 45 - 50% faster times working out the changed files to deploy.

If it is accepted it would be great to upgrade that too.
Do you want me to create an issue on the issues repo?

@lukecotter lukecotter requested a review from a team as a code owner January 17, 2025 17:59
@lukecotter lukecotter changed the title perf: early exit for pathisinfolder perf: early exit for pathIsInfolder (19% faster) Jan 17, 2025
Will now pre process filePaths and group them by their packagedirectory.
This prevents the same file being checked for inclusion in a directory
when it has already been included in a previous directory.
@cristiand391
Copy link
Member

hi @lukecotter

thanks for the PR!
please ping me when your iso-git PR is released and I can get the e2e run on this PR 👍🏼

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

Successfully merging this pull request may close these issues.

2 participants