normal
ef59670a44
st.c: use power-of-two sizes to avoid slow modulo ops
...
* st.c (hash_pos): use bitwise AND to avoid slow modulo op
(new_size): power-of-two sizes for hash_pos change
(st_numhash): adjust for common keys due to lack of prime modulo
[Feature #9425 ]
* hash.c (rb_any_hash): right shift for symbols
* benchmark/bm_hash_aref_miss.rb: added to show improvement
* benchmark/bm_hash_aref_sym_long.rb: ditto
* benchmark/bm_hash_aref_str.rb: ditto
* benchmark/bm_hash_aref_sym.rb: ditto
* benchmark/bm_hash_ident_num.rb: added to prevent regression
* benchmark/bm_hash_ident_obj.rb: ditto
* benchmark/bm_hash_ident_str.rb: ditto
* benchmark/bm_hash_ident_sym.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-22 23:34:21 +00:00
..
2013-12-19 01:49:59 +00:00
2012-10-15 12:53:12 +00:00
2013-09-22 10:01:22 +00:00
2013-06-20 07:58:13 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2014-03-22 23:34:21 +00:00
2014-03-22 23:34:21 +00:00
2014-03-22 23:34:21 +00:00
2014-03-22 23:34:21 +00:00
2013-11-28 10:50:41 +00:00
2014-03-22 23:34:21 +00:00
2014-03-22 23:34:21 +00:00
2014-03-22 23:34:21 +00:00
2014-03-22 23:34:21 +00:00
2013-11-28 10:50:41 +00:00
2013-04-25 05:03:30 +00:00
2013-11-28 10:50:41 +00:00
2011-11-17 11:24:07 +00:00
2011-11-17 11:24:07 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2013-06-20 07:30:41 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2013-12-28 08:25:28 +00:00
2012-11-21 07:15:03 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2013-11-06 00:21:05 +00:00
2013-11-06 00:21:05 +00:00
2013-11-06 00:21:05 +00:00
2013-11-06 00:21:05 +00:00
2013-11-06 00:21:05 +00:00
2013-11-06 00:21:05 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-16 20:37:25 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-16 23:47:51 +00:00
2012-10-15 12:53:12 +00:00
2012-10-17 07:26:58 +00:00
2012-10-16 20:37:25 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-05-26 03:25:15 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-10-15 12:53:12 +00:00
2012-05-27 14:41:01 +00:00
2013-11-06 00:21:05 +00:00
2014-01-30 18:48:40 +00:00