Default string literals to be encoded as ascii-8bit so we can avoid calling .b on string literals. Also change string literals to be mutable so we can avoid calling .dup on string literal buffers.
This should reduce method calls, but I didn't see any change in performance. I suspect that since the time is being dominated by String#<< this won't make much difference until we better support String#<< in YJIT
Default string literals to be encoded as
ascii-8bit
so we can avoid calling.b
on string literals. Also change string literals to be mutable so we can avoid calling.dup
on string literal buffers.This should reduce method calls, but I didn't see any change in performance. I suspect that since the time is being dominated by
String#<<
this won't make much difference until we better supportString#<<
in YJITcc @nirvdrum