parallel 1.17.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parallel/processor_count.rb +3 -5
- data/lib/parallel/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '07982de0b997f714be6d852d131b956890732c67693ea444cb387d116ce3c28a'
|
4
|
+
data.tar.gz: af82ce6875dc07e1260a5a0fa612eb277fd6205c08c546e87ff1acfe6ee12565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02ef44d1053d7cd986acb9e8c31f6784c81749fb28cb3d984eeea27bf787f3927c87f5d0bea1f2d462b938a744685ce5aa7b3061e082279e767364395bb08062
|
7
|
+
data.tar.gz: 5a245449c881801fd3e7051dd040db977ddd6b80a488c31ec26300653c81468448c6e729d1123b3ece94e24c230877225e4edca7037ba4ccfb5dd37eca6f649a
|
@@ -1,16 +1,14 @@
|
|
1
1
|
require 'etc'
|
2
2
|
|
3
3
|
module Parallel
|
4
|
+
# TODO: inline this method into parallel.rb and kill physical_processor_count in next major release
|
4
5
|
module ProcessorCount
|
5
|
-
# Number of processors seen by the OS
|
6
|
+
# Number of processors seen by the OS, used for process scheduling
|
6
7
|
def processor_count
|
7
|
-
@processor_count ||=
|
8
|
-
Etc.nprocessors
|
9
|
-
end
|
8
|
+
@processor_count ||= Integer(ENV['PARALLEL_PROCESSOR_COUNT'] || Etc.nprocessors)
|
10
9
|
end
|
11
10
|
|
12
11
|
# Number of physical processor cores on the current system.
|
13
|
-
#
|
14
12
|
def physical_processor_count
|
15
13
|
@physical_processor_count ||= begin
|
16
14
|
ppc = case RbConfig::CONFIG["target_os"]
|
data/lib/parallel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: michael@grosser.it
|
@@ -39,8 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
|
-
|
43
|
-
rubygems_version: 2.7.6
|
42
|
+
rubygems_version: 3.0.3
|
44
43
|
signing_key:
|
45
44
|
specification_version: 4
|
46
45
|
summary: Run any kind of code in parallel processes
|