Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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