[ruby-cvs:64911] normal:r57745 (trunk): deduplicate strings sooner at load and compile

normal at ruby-lang.org normal at ruby-lang.org
Wed Mar 1 10:16:26 JST 2017


normal	2017-03-01 10:16:26 +0900 (Wed, 01 Mar 2017)

  New Revision: 57745

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

  Log:
    deduplicate strings sooner at load and compile
    
    We can use rb_fstring_cstr in some places to prevent an
    intermediate object from being created before deduplication
    via rb_fstring.
    
    * compile.c (iseq_compile_each): use rb_fstring_cstr
      (rb_insns_name_array): ditto
    * load.c (rb_load_internal0): ditto

  Modified files:
    trunk/compile.c
    trunk/load.c


More information about the ruby-cvs mailing list