[ruby-cvs:55003] normal:r47854 (trunk): benchmark/bm_hash_aref_sym*.rb: force static symbols

normal at ruby-lang.org normal at ruby-lang.org
Thu Oct 9 12:44:12 JST 2014


normal	2014-10-09 12:44:12 +0900 (Thu, 09 Oct 2014)

  New Revision: 47854

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

  Log:
    benchmark/bm_hash_aref_sym*.rb: force static symbols
    
    Dynamic symbols hash more slowly because they need extra method
    dispatch in rb_any_hash.  I am not sure if dynamic symbols are
    a realistic use case as hash keys, so this commit only
    restores performance when comparing against versions of Ruby
    which lack dsyms.

  Modified files:
    trunk/ChangeLog
    trunk/benchmark/bm_hash_aref_sym.rb
    trunk/benchmark/bm_hash_aref_sym_long.rb


More information about the ruby-cvs mailing list