Skip to content

Why Parallel.processor_count do not use standard Etc.nprocessors? #149

@zekefast

Description

@zekefast

There is a standard method in Ruby 2.2.0: Etc.nprocessors

I think it would be better to rely on method from standard library instead of implemented it in system dependent way like done in [the code](https://github.com/grosser/parallel/blob/master/lib/parallel/processor_count.rb#L17]

What do you think?

Disclaimer: I have not tested all supported by Parallel.processor_count platforms to ensure that Etc.nprocessors behaves on them correctly.

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