[ruby-cvs:68885] normal:r61704 (trunk): use predefined ids in a few more places

normal at ruby-lang.org normal at ruby-lang.org
Tue Jan 9 11:45:04 JST 2018


normal	2018-01-09 11:45:03 +0900 (Tue, 09 Jan 2018)

  New Revision: 61704

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

  Log:
    use predefined ids in a few more places
    
    Saves a little space on x86:
    
       text	   data	    bss	    dec	    hex	filename
    3684110	  11968	  34240	3730318	 38eb8e	ruby.before
    3684086	  11968	  34240	3730294	 38eb76	ruby.after
    
    * enumerator.c: include id.h, define aliases
      (Init_Enumeerator): remove unnecessary rb_intern calls
    * gc.c (should_be_callable): use idCall
    * vm.c (Init_VM): ditto

  Modified files:
    trunk/enumerator.c
    trunk/gc.c
    trunk/vm.c


More information about the ruby-cvs mailing list