[ruby-cvs:67518] glass:r60337 (trunk): hash.c: optimize Hash#compare_by_identity

glass at ruby-lang.org glass at ruby-lang.org
Sun Oct 22 09:57:46 JST 2017


glass	2017-10-22 09:57:46 +0900 (Sun, 22 Oct 2017)

  New Revision: 60337

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

  Log:
    hash.c: optimize Hash#compare_by_identity
    
    hash.c (rb_hash_compare_by_id): avoid unnecessary allocation of st_table.
    formerly, st_table created in rb_hash_modify() was not used and replaced immediately.

  Modified files:
    trunk/hash.c


More information about the ruby-cvs mailing list