Skip to content

Conversation

osiewicz
Copy link
Contributor

@osiewicz osiewicz commented Oct 14, 2025

smol::fs uses a separate threadpool, which is a bit yuck.

This PR also added a benchmark you can use to run a full worktree scan (initial one, that is) for arbitrary worktree.. and refactored worktree scanner to use async locks, as otherwise tests were deadlocking. :)
I've benchmarked it against Zed, Linux and Chromium and saw a ~60% drop in initial worktree scan times across the board.
Release Notes:

  • Significantly (3.3x speedup over the old implementation) improved speed of Zed's worktree scanner, that's responsible for synchronizing the state of your project with the state of files on hard drive.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 14, 2025
@osiewicz osiewicz merged commit c37a2f8 into main Oct 16, 2025
23 checks passed
@osiewicz osiewicz deleted the fs-use-bg-executor branch October 16, 2025 12:49
osiewicz added a commit that referenced this pull request Oct 16, 2025
osiewicz added a commit that referenced this pull request Oct 16, 2025
This caused issues with #40172, as it made Zed execute and block on tad
few more background tasks. Parker is ~cheap to create, hence we should
be ok to just create it at the time it is needed.
osiewicz added a commit that referenced this pull request Oct 16, 2025
This caused issues with #40172, as it made Zed execute and block on tad
few more background tasks. Parker is ~cheap to create, hence we should
be ok to just create it at the time it is needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant