[ruby-cvs:73196] normal:r66096 (trunk): io.c: favor comparisons against zero rather than -1

normal at ruby-lang.org normal at ruby-lang.org
Fri Nov 30 07:37:29 JST 2018


normal	2018-11-30 07:37:29 +0900 (Fri, 30 Nov 2018)

  New Revision: 66096

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

  Log:
    io.c: favor comparisons against zero rather than -1
    
    On my 32-bit x86 userspace, I get the following .text savings:
    
        text	   data	    bss	    dec	    hex	filename
      152971	     56	    252	 153279	  256bf	io.o.before
      152863	     56	    252	 153171	  25653	io.o.after

  Modified files:
    trunk/io.c


More information about the ruby-cvs mailing list