8000 Poor globbing performance in nfs-mounted directory with lots of subdirectories. · Issue #9891 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Poor globbing performance in nfs-mounted directory with lots of subdirectories. #9891

@kaysond

Description

@kaysond

Running fish 3.6.1 on SLES 12 (with clean home dir). For additional context, please see IlanCosman/tide#420

I have an nfs-mounted directory with ~4000 subdirectories. If I do something like set -l glob /path/a*/, where /path/ has lots of subdirs starting with a, it takes upwards of 2 min to complete. Doing an ls /path even at its worst, never takes more than ~10s. I'm not sure what the globbing is doing that is slowing it down.

The globbing does not appear to cache the results between commands, even though the filesystem itself does. If I do set -l glob /path/a*/; set l glob /path/ab*/ where the result is the same number of directories, the second glob runs instantly. When I run the same command a second time, though, it still takes 2 minutes, even though its immediately after.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intendedperformancePurely performance-related enhancement without any changes in black box output

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0