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.
There is a standard method in Ruby 2.2.0:
Etc.nprocessorsI 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_countplatforms to ensure thatEtc.nprocessorsbehaves on them correctly.