[ruby-cvs:55277] nobu:r48127 (trunk): rake/cpu_counter.rb: use Etc.nprocessors

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Oct 25 12:52:47 JST 2014


nobu	2014-10-25 12:52:46 +0900 (Sat, 25 Oct 2014)

  New Revision: 48127

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48127

  Log:
    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.

  Modified files:
    trunk/lib/rake/cpu_counter.rb
    trunk/test/rake/test_rake_cpu_counter.rb


More information about the ruby-cvs mailing list