Skip to content

tree view is unusably slow on a large monorepo #8242

@bradzacher

Description

@bradzacher

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Screen.Recording.2024-02-23.at.14.16.31.mov

Sorry about the blurring - internal company monorepo so can't really share the names out.

When opening zed it takes around 20s for zed to show the 1st-level contents of the folder.

Problem number one here is that there is no progress bar or activity indicator to show that something is happening.
The first time I added the folder to the IDE I thought I'd done something wrong because nothing showed up. I switched away to read the docs and when I went back to zed it showed the folders.

I then try to expand a folder. The folder I clicked on has JUST ONE file in it. The video cuts off before the folder contents show up - I let it go for about a minute before I got bored and stopped recording so I don't know how long it took overall (I trimmed the video down).

Sadly this makes the IDE unusable as a daily driver for me.

Environment

Zed: v0.123.3 (Zed)
OS: macOS 14.3.1
Memory: 64 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

The last 7000 lines of the log are just this repeated:

2024-02-23T14:29:06+10:30 [ERROR] crates/fs/src/repository.rs:147: Error { code: -1, klass: 10, message: "invalid data in index - calculated checksum does not match expected" }
2024-02-23T14:29:06+10:30 [ERROR] crates/fs/src/repository.rs:215: Error { code: -1, klass: 10, message: "invalid data in index - calculated checksum does not match expected" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[core label]large projectsFor anything relating to large volumes of files or multiple subprojects in one main project.performanceFeedback for performance issues, speed, memory usage, etcproject panelFeedback for files tree view

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions