[GH-ISSUE #553] Limit sub directory item counting #326

Closed
opened 2026-04-08 16:52:02 +03:00 by zhus · 0 comments
Owner

Originally created by @ragazenta on GitHub (Feb 27, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/553

Specific Demand

#457 Introduce sub directory item counting.

I have million of files inside some directories, I've experienced slow performance. So I think it's better to add configurable limit.

Implement Suggestion

Let's say I can set countLimit = 100, instead of counting until 1 million, simply break the loop and display

Size
> 100 items

But this will affect the sorting though.

Originally created by @ragazenta on GitHub (Feb 27, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/553 ## Specific Demand #457 Introduce sub directory item counting. I have million of files inside some directories, I've experienced slow performance. So I think it's better to add configurable limit. ## Implement Suggestion Let's say I can set `countLimit` = 100, instead of counting until 1 million, simply break the loop and display | Size | |---:| | > 100 items | But this will affect the sorting though.
zhus closed this issue 2026-04-08 16:52:02 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#326