diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-25 03:52:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-25 03:52:46 +0000 |
commit | 26143970c1300d09f9063ff77ba9b4d15472b9c8 (patch) | |
tree | c55dcca7c6efc1c0d1d38fd1cb6cfc8bfc815df2 /thread_pthread.c | |
parent | 5940b1f6fc6745e4cb7516345a24b9b45567d21b (diff) | |
download | ruby-26143970c1300d09f9063ff77ba9b4d15472b9c8.tar.gz |
rake/cpu_counter.rb: use Etc.nprocessors
* lib/rake/cpu_counter.rb (count): prefer Etc.nprocessors, which
is hundreds times faster.
* test/rake/test_rake_cpu_counter.rb: add tests for features, and
remove useless tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
0 files changed, 0 insertions, 0 deletions