Skip to content

Multithreaded file scan #15461

@wgbusch

Description

@wgbusch

Description

  • When I scan files using the "Scan Directory" feature, retroarch doesn't seem to do any parallelization or efficiently use the CPU. This should be a highly parallelizable task, Im not sure why is implemented linearly. I'm a developer but I have zero experience with the retroarch code, if someone could point me out to where I have to look to implement this feature I will gladly take a look myself and try to implement it.
    2023-07-07 08_56_06-Window

Expected behavior

Scan Directory should be parallelizable.

Actual behavior

Very low CPU usage, making the Scan Directory extremely slow.

Steps to reproduce the bug

  1. Scan a directory with thousands of small files (ideally more than 10k).

Bisect Results

[Try to bisect and tell us when this started happening]

Version/Commit

You can find this information under Information/System Information

  • RetroArch: 1.10.2

Environment information

  • OS: Windows 10
  • Compiler: [In case you are running local builds]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions