Unable to run Zed in a directory with 10,000+ files #24123
Unanswered
osa1
asked this question in
General Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not creating an issue report because I don't have a repro that I can share.
If I run Zed in a directory with 10,000+
.so
files (and a few other files and directories too) it hangs.If I create the .so files while Zed is already running in that directory, it also hangs.
My guess is it's trying to do something with each of those files (maybe getting some file properties or something), and the process is either very slow in terms of IO operations done, or some linear-time operation is done for each file. Maybe each file is added to the file tree (or some other data structure) one by one, and each insertion is a
Vec::insert
.I suspect someone familiar with the code base may be able to find the root cause by just considering what are the operations the editor does when a new file is added to the working directory, or what's done to each file in the working directory when a new Zed instance is opened at a dir, so wanted to create a discussion at least.
Beta Was this translation helpful? Give feedback.
All reactions