[ruby-cvs:65161] normal:r57995 (trunk): deduplicate "/", ":" and "\n" strings

normal at ruby-lang.org normal at ruby-lang.org
Fri Mar 17 09:55:45 JST 2017


normal	2017-03-17 09:55:45 +0900 (Fri, 17 Mar 2017)

  New Revision: 57995

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

  Log:
    deduplicate "/", ":" and "\n" strings
    
    "/" and ":" are always statically registered in symbol.c (Init_op_tbl),
    and "\n" is a commonly seen in source code.
    
    * file.c (Init_File): fstring on File::SEPARATOR and File::PATH_SEPARATOR
    * io.c (Init_IO): fstring on rb_default_rs ("\n")

  Modified files:
    trunk/file.c
    trunk/io.c


More information about the ruby-cvs mailing list