[ruby-cvs:54005] nobu:r46859 (trunk): enum.c: optimize any? object allocations for Array and Hash

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Jul 18 11:10:38 JST 2014


nobu	2014-07-18 11:10:37 +0900 (Fri, 18 Jul 2014)

  New Revision: 46859

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

  Log:
    enum.c: optimize any? object allocations for Array and Hash
    
    * enum.c (enum_any): optimize object allocations for Array and
      Hash when `each` is not redefined, always false if empty and the
      case without a block.  [fix GH-617]

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/enum.c
    trunk/vm.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list