All of the strings created here eventually get converted to fstrings when they are frozen into the iseq. Prepare the fstring early so we may reduce a one or two objects.
This is a very minor change, mainly for the '' dedupe.
compile.c (caller_location): use rb_fstring_cstr for "" (it is converted to fstring anyways inside rb_iseq_new_with_opt)
iseq.c (iseqw_s_compile): ditto
iseq.c (rb_iseq_new_main): use rb_fstring_cstr for ""
vm.c (Init_VM): ditto, share with with above
iseq.c (iseqw_s_compile_file): rb_fstring before rb_io_t->pathv share "" with above
fstring early for internal iseq
All of the strings created here eventually get converted to
fstrings when they are frozen into the iseq. Prepare the
fstring early so we may reduce a one or two objects.
This is a very minor change, mainly for the '' dedupe.
(it is converted to fstring anyways inside rb_iseq_new_with_opt)
share "" with above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e