ruby-changes:10241
From: matz <ko1@a...>
Date: Tue, 27 Jan 2009 03:49:13 +0900 (JST)
Subject: [ruby-changes:10241] Ruby:r21785 (trunk): * hash.c (rb_any_hash): fixed performance issues with nil, true,
matz 2009-01-27 03:48:47 +0900 (Tue, 27 Jan 2009) New Revision: 21785 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21785 Log: * hash.c (rb_any_hash): fixed performance issues with nil, true, false as hash keys. a patch from Matthias Waechter. [ruby-core:21568] Modified files: trunk/ChangeLog trunk/hash.c Index: ChangeLog =================================================================== --- ChangeLog (revision 21784) +++ ChangeLog (revision 21785) @@ -1,3 +1,9 @@ +Tue Jan 27 03:43:34 2009 Yukihiro Matsumoto <matz@r...> + + * hash.c (rb_any_hash): fixed performance issues with nil, true, + false as hash keys. a patch from Matthias Waechter. + [ruby-core:21568] + Tue Jan 27 03:23:43 2009 Yukihiro Matsumoto <matz@r...> * lib/mkmf.rb (create_makefile): should point correct path to Index: hash.c =================================================================== --- hash.c (revision 21784) +++ hash.c (revision 21785) @@ -69,6 +69,9 @@ switch (TYPE(a)) { case T_FIXNUM: case T_SYMBOL: + case T_NIL: + case T_FALSE: + case T_TRUE: hnum = (int)a; break; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/