broot icon indicating copy to clipboard operation
broot copied to clipboard

Slow at /proc

Open madprops opened this issue 1 year ago • 4 comments

Not a bug report, but it might be interesting for you to know that opening /proc in my system takes several seconds, like 4 seconds. In case there's room for performance improvements there.

Using these default flags:

default_flags: "-gh --sort-by-type"

madprops avatar Mar 16 '24 08:03 madprops

I can't reproduce that.

Can you tell me more about your system (OS, shell, specifics) and whether it's slow too if you use different launch arguments ?

Canop avatar Mar 16 '24 09:03 Canop

Arch Linux, Fish shell, 64-bit. Using Alacritty, also tested on Tilix. ls -l | wc -l in /proc results in 21015. Same results with and without the default flags from the hjson file. Same result when using bash.

madprops avatar Mar 16 '24 10:03 madprops

Is ls -al /proc slow too ?

Can you please show the debug log (I'm especially interested in the special paths part) ?

Canop avatar Mar 16 '24 10:03 Canop

ls -al /proc completes in around 224ms.

broot.log shows:

    special_paths: {
        GlobConf {
            pattern: "/media",
        }: Shortcut(
            NoEnter,
        ),
    },

madprops avatar Mar 16 '24 10:03 madprops