Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress size performance #203

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Suppress size performance #203

merged 2 commits into from
Jun 26, 2023

Conversation

solidiquis
Copy link
Owner

Some folks like to use erdtree as an ls replacement but because erdtree always does a full-depth traversal when reading entries from either disk or cache it was quite slow to get the first depth level of directory entries even if directory size is suppressed.

This PR makes it such that $ erd --suppress-size --level 1 only reads root's entries using only a single-thread (regardless of -T, --threads) so that results are available almost instantaneously.

@solidiquis solidiquis changed the base branch from master to v3.1 June 26, 2023 05:37
@solidiquis solidiquis merged commit 7deccb6 into v3.1 Jun 26, 2023
@solidiquis solidiquis mentioned this pull request Jun 26, 2023
@solidiquis solidiquis deleted the suppress-size-performance branch July 1, 2023 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant