Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/design/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ After the selected item is deleted, selection moves to the next remaining item i

Changing the sort field, direction, Folders First or Hidden Last scrolls to the beginning of the new order and keeps the selection, whether the change comes from list headings, the Sort menu or Settings. Hidden extra columns are not queried during ordinary large-folder browsing; enabling one loads its visible rows. In large folders names can appear before details: Reading… marks a pending value and Unknown a value that was unavailable after querying. Sorting by metadata or selecting many items can require facts from the rest of the folder, and file actions wait for the facts they need. Folder sizes never show Reading….

Recursive folder sizes in the Size column are computed in the background for visible rows of local filesystems only, never for network locations. Sorting by Size computes them for every listed folder and orders folders by them instead of the folder entry's own size; a folder without a size yet sorts after the known ones and moves into place when its size arrives. A size covers the folder's own filesystem; a mount point inside it is not traversed and the cell shows the ≥ marker, which also marks any partial result. Cached sizes refresh when the listing reports changes. Missing provider metadata stays unavailable instead of becoming a made-up value.
Recursive folder sizes in the Size column are computed in the background for visible rows of local filesystems only, never for network locations. Sorting by Size computes them for every listed folder and orders folders by them instead of the folder entry's own size; a folder without a size yet sorts after the known ones and moves into place when its size arrives. A size covers the folder's own filesystem; a mount point inside it is not traversed and the cell shows the ≥ marker, which also marks any partial result. Cached sizes refresh when the listing reports changes. A walk reads each entry with a single `fstatat`, and once a tree passes a few thousand items it lists folders on up to one thread per physical core, like [diskus](https://github.com/sharkdp/diskus); more threads mostly add kernel lock contention. Missing provider metadata stays unavailable instead of becoming a made-up value.

Per-folder view and sort settings are keyed by location, so a renamed or moved folder starts from the defaults. Columns is a window-wide default mode: folders' own view choices do not apply while it is on, but sorting a column there still changes only that column's folder. File picker windows ignore per-folder settings. Action messages in the status bar clear after five seconds or at the next action. Link icons and custom folder icon changes show after the next listing, such as Refresh. In Miller columns the application keeps a bounded set of live columns while deep navigation remains possible.

Expand Down
3 changes: 2 additions & 1 deletion src/fs/folder_totals.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ namespace luciole {
}
};
// Read-only native traversal started by the preview pane, the Properties dialog and the list view's bound rows.
// One worker per instance, bounded progress delivery, no link following or content reads.
// One walk per instance, bounded progress delivery, no link following or content reads. A large tree is listed
// on up to one thread per physical core.
// An injected network-filesystem check refuses the whole start before any traversal.
// A new start supersedes a running traversal; the superseded result never publishes.
class FolderTotalsService {
Expand Down
Loading
Loading