Skip to content

Allow more parallelism than rayon default (thread per core) #117

@mhansen

Description

@mhansen

Ripunzip uses rayon default thread pool, which I believe is one thread per logical core.

This is appropriate for cpu-bound work. However, unzipping spends a lot of time blocking on I/O, waiting for disk or network.

In such cases, you benefit from more threads than cores, so you can issue more iops in parallel. Particularly with SSDs that require many parallel I/O requests to saturate the hardware.

Ripgrep could either:

  • provide a tuning argument like -j
  • or auto tune the thread pool size (somehow)
  • or both

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions