Skip to content

ls -R could run in parallel to improve the performances (aka ls -R is much slower than GNU's) #2069

Closed
@sylvestre

Description

@sylvestre

Running ls -R on a big tree (firefox sources for example), we are 5 times slower than the GNU version.

$ hyperfine --warmup 2   --show-output 'ls -al -R mozilla-central.hg  > /dev/null' '/home/sylvestre/dev/debian/coreutils//target/release/coreutils ls -al -R mozilla-central.hg > /dev/null'  
...
Summary
  'ls -al -R /home/sylvestre/dev/mozilla/mozilla-central.hg  > /dev/null' ran
    4.71 ± 0.31 times faster than '/home/sylvestre/dev/debian/coreutils//target/release/coreutils ls -al -R mozilla-central.hg > /dev/null'

Running it in parallel could help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions