Skip to content

Powerline/zsh extremely slow in git repos with large file counts #1543

Closed
@ttrmw

Description

@ttrmw

Hey,

I'm finding zsh with powerline takes a long time to finish commands such as ls, cd in git repos with high file counts.. Is this a known issue?

For example, the following project:

https://github.com/shakacode/react-webpack-rails-tutorial

Once npm install is run on this, the directory and its subdirectories will contain around 32000 files. The vast majority are .gitignored, but the presence of so many files in a git repo seems to be the deciding factor for the massive slow downs I'm seeing: Powerline/zsh are really speedy in the root directory, and in repos with a low file count. In rbenv's gem installation paths, eg $HOME/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.2, or just generally under $/.rbenv (190~k files) things slow down heavily, but in a normal rails project everything is fine.

In the above project, the client/node_modules directory is the main offender, containing 29000 of the 32000 files. Note however that the problem is still exhibited in subdirectories outside of node_modules, eg :/app/models.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions