ipfs / ipfs/kubo

Ls performance changes

Open
#4,891 4 comments 0 reactions 0 assignees View on GitHub
kind/enhancement topic/commands topic/perf
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

I'd like to make the following changes to the `ls` command for performance reasons:

1. Add a `-q` flag that only returns names. Base58 encoding a bunch of CIDs is actually quite a time-consuming operation. It would be nice to have a variant that just returns names.
2. Replace `--resolve-types` with `--type=[always|local|never]`. Currently, there's no way to say "don't resolve this type, even if we have the object". Having that option would allow us to avoid hitting the datastore for every file listed. (note, `--resolve-types` will only be deprecated, not removed).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.