Skip to content

speed up gitdir function by ~20% - #1960

Merged
Andarist merged 1 commit into
changesets:nextfrom
beeequeue:gitdir-perf
May 4, 2026
Merged

Andarist merged 1 commit into
changesets:nextfrom
beeequeue:gitdir-perf

Conversation

@beeequeue

@beeequeue beeequeue commented May 4, 2026 •

Copy link
Copy Markdown
Member

from my testing this reduces the time to run tests that use gitdir by about 20-30%

for example:

  • git.test.ts: 40s -> 32s
  • status.test.ts: 10s -> 7s

seems to be about 10s faster in ci as well

ci screenshots

next

image

this pr

image

@changeset-bot

changeset-bot Bot commented May 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 96ad3c1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@beeequeue
beeequeue requested review from Andarist and bluwy May 4, 2026 15:42
@codecov

codecov Bot commented May 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.93%. Comparing base (25c6d59) to head (96ad3c1).
⚠️ Report is 1 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1960      +/-   ##
==========================================
- Coverage   81.95%   81.93%   -0.03%     
==========================================
  Files          54       54              
  Lines        2455     2452       -3     
  Branches      718      718              
==========================================
- Hits         2012     2009       -3     
  Misses        400      400              
  Partials       43       43              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Andarist
Andarist merged commit 0267cdf into changesets:next May 4, 2026
10 checks passed
@beeequeue
beeequeue deleted the gitdir-perf branch May 4, 2026 16:06
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.

3 participants