[前][次][番号順一覧][スレッド一覧]

ruby-changes:38466

From: nagachika <ko1@a...>
Date: Wed, 20 May 2015 03:11:28 +0900 (JST)
Subject: [ruby-changes:38466] nagachika:r50547 (ruby_2_2): merge revision(s) 50084: [Backport #10999]

nagachika	2015-05-20 03:11:15 +0900 (Wed, 20 May 2015)

  New Revision: 50547

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

  Log:
    merge revision(s) 50084: [Backport #10999]
    
    * benchmark/bm_hash_aref_flo.rb: make more realistic data.
      [ruby-core:68632] [[Bug #10999]

  Modified directories:
    branches/ruby_2_2/
  Modified files:
    branches/ruby_2_2/ChangeLog
    branches/ruby_2_2/benchmark/bm_hash_aref_flo.rb
    branches/ruby_2_2/version.h
Index: ruby_2_2/ChangeLog
===================================================================
--- ruby_2_2/ChangeLog	(revision 50546)
+++ ruby_2_2/ChangeLog	(revision 50547)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ChangeLog#L1
+Wed May 20 03:10:49 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* benchmark/bm_hash_aref_flo.rb: make more realistic data.
+	  [ruby-core:68632] [[Bug #10999]
+
 Wed May 20 02:49:49 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* proc.c (respond_to_missing_p): check if the receiver responds to
Index: ruby_2_2/version.h
===================================================================
--- ruby_2_2/version.h	(revision 50546)
+++ ruby_2_2/version.h	(revision 50547)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1
 #define RUBY_VERSION "2.2.3"
 #define RUBY_RELEASE_DATE "2015-05-20"
-#define RUBY_PATCHLEVEL 106
+#define RUBY_PATCHLEVEL 107
 
 #define RUBY_RELEASE_YEAR 2015
 #define RUBY_RELEASE_MONTH 5
Index: ruby_2_2/benchmark/bm_hash_aref_flo.rb
===================================================================
--- ruby_2_2/benchmark/bm_hash_aref_flo.rb	(revision 50546)
+++ ruby_2_2/benchmark/bm_hash_aref_flo.rb	(revision 50547)
@@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/benchmark/bm_hash_aref_flo.rb#L1
 h = {}
-strs = (1..10000).to_a.map!(&:to_f)
+strs = [*1..10000].map! {|i| i.fdiv(10)}
 strs.each { |s| h[s] = s }
 50.times { strs.each { |s| h[s] } }

Property changes on: ruby_2_2
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r50084


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]