[ruby-cvs:72159] nobu:r65059 (trunk): Prefer `rb_fstring_lit` over `rb_fstring_cstr`

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Oct 13 18:59:22 JST 2018


nobu	2018-10-13 18:59:22 +0900 (Sat, 13 Oct 2018)

  New Revision: 65059

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

  Log:
    Prefer `rb_fstring_lit` over `rb_fstring_cstr`
    
    The former states explicitly that the argument must be a literal,
    and can optimize away `strlen` on all compilers.

  Modified files:
    trunk/compile.c
    trunk/error.c
    trunk/eval_error.c
    trunk/file.c
    trunk/io.c
    trunk/iseq.c
    trunk/load.c
    trunk/proc.c
    trunk/strftime.c
    trunk/string.c
    trunk/time.c
    trunk/vm.c
    trunk/vm_eval.c


More information about the ruby-cvs mailing list