diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2023-01-13 14:30:47 +0000 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-01-13 10:31:35 -0500 |
commit | 8a93e5d01bf8bc185426a62ebb675460592a609b (patch) | |
tree | dcb2db0c4fb0e65baca445fc3390d61c563d45da /re.c | |
parent | 2605615fe6c540740ce921c181c1bc081c019e49 (diff) | |
download | ruby-8a93e5d01bf8bc185426a62ebb675460592a609b.tar.gz |
Use str_enc_copy_direct to improve performance
str_enc_copy_direct copies the string encoding over without checking the
frozen status of the string. Because we know that we're safe here (we
only use this function when interpolating strings on the stack via a
concatstrings instruction) we can safely skip this check
Diffstat (limited to 're.c')
0 files changed, 0 insertions, 0 deletions