Skip to content

Rfd, uses 100% of one CPU core on Windows #276

@qarmin

Description

@qarmin

Project czkawka/krokiet uses the following dependency:

rfd = { version = "0.15", default-features = false, features = ["xdg-portal", "async-std"] }

rfd version "0.15.4"

rfd usage

        let file_dialog = FileDialog::new().set_directory(directory);

        let Some(folders) = file_dialog.pick_folders() else {
            return;
        };

One user reported that opening the file-chooser dialog on Windows causes a single CPU core to spike to 100%. After closing the dialog, CPU usage returns to normal.

Issue link: qarmin/czkawka#1641

Open krokiet and click "Add folder" button in lower left corner. Then the CPU usage will be high and the folder-picking dialog is very laggy.

After I close the dialog, CPU usage will go back down to 2%.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions